]> git.baikalelectronics.ru Git - kernel.git/commit
staging: lustre: mdc: avoid returning freed request
authorJohn L. Hammond <john.hammond@intel.com>
Sun, 29 Jan 2017 00:05:15 +0000 (19:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2017 12:01:38 +0000 (13:01 +0100)
commitdf8b9ea748dc1c00ced4d29a2599c513e2b195ef
tree37af73bbd70d2e7b3bfb24ce12526a2110d1ca95
parent2962c825b38858001143d2fc76eee994253f8d19
staging: lustre: mdc: avoid returning freed request

In mdc_close() if ptlrpc_request_pack() fails then set req to NULL so
that an already freed request is not returned in *request.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8811
Reviewed-on: https://review.whamcloud.com/23843
Reviewed-by: Patrick Farrell <paf@cray.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/mdc/mdc_request.c