Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ramoops: move spin_lock_init after kmalloc error checking
If cxt->pstore.buf allocated failed, no need to initialize cxt->pstore.buf_lock. So this patch moves spin_lock_init() after the error checking. Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Kees Cook <[email protected]>
- Loading branch information