diff options
| author | Geliang Tang <[email protected]> | 2016-08-30 12:24:42 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2016-09-08 22:01:13 +0000 |
| commit | f88baf68ebe5b2efced64725fd98548af9b8f510 (patch) | |
| tree | 5201d40100d0c6dedb3ed9244828804dfb682cb7 /drivers/net/xen-netback/interface.c | |
| parent | pstore/ram: Use memcpy_fromio() to save old buffer (diff) | |
| download | kernel-f88baf68ebe5b2efced64725fd98548af9b8f510.tar.gz kernel-f88baf68ebe5b2efced64725fd98548af9b8f510.zip | |
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]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions
