]> git.karo-electronics.de Git - linux-beck.git/commit
staging: lustre: ldlm: fix a use after free in ldlm_resource_get()
authorJohn L. Hammond <john.hammond@intel.com>
Sun, 18 Sep 2016 20:37:02 +0000 (16:37 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Sep 2016 07:24:10 +0000 (09:24 +0200)
commitcde5f1097356568492257a550766e45264cfa923
tree952dcc7b23bba97f12664fd26e9837656fc4d119
parent2e0ca344931997954443dbda26cfb409e7cd1f08
staging: lustre: ldlm: fix a use after free in ldlm_resource_get()

If lvbo initialization has failed then save the return status (from
lr_lvb_len) before putting the resource.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5305
Reviewed-on: http://review.whamcloud.com/11017
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_resource.c