diff options
author | Niu Yawei <yawei.niu@intel.com> | 2016-05-04 10:28:58 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-05-09 14:01:14 +0200 |
commit | 2ff1d8fbba493538e0d0c4f0e2dcd9c4bb0eb21a (patch) | |
tree | 7adab4b52d75a289ec3cbbb157a99f4fe8e3bd88 /kernel | |
parent | 4fd9a8e937368781ac830402a3bcb87646999946 (diff) | |
download | linux-stable-2ff1d8fbba493538e0d0c4f0e2dcd9c4bb0eb21a.tar.gz linux-stable-2ff1d8fbba493538e0d0c4f0e2dcd9c4bb0eb21a.tar.bz2 linux-stable-2ff1d8fbba493538e0d0c4f0e2dcd9c4bb0eb21a.zip |
staging: lustre: ptlrpc: fix nrs cleanup
When service start failed due to short of memory, the cleanup code
could operate on uninitialized structure and cause crash at the end.
This patch fix the nrs_svcpt_cleanup_locked() to perform cleanup only
on the nrs which has been properly initialized.
Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3772
Reviewed-on: http://review.whamcloud.com/7410
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions