Whamcloud - gitweb
LU-5305 ldlm: fix a use after free in ldlm_resource_get() 17/11017/2
authorJohn L. Hammond <john.hammond@intel.com>
Tue, 8 Jul 2014 20:26:09 +0000 (15:26 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 15 Jul 2014 04:00:11 +0000 (04:00 +0000)
commitb29c9945aba485cf8e895cbafdb894f8da2375b7
tree815b0530e2d22b6dd3141cab5b60f7b873a56ef2
parent593b6ab6d21976d37004621b86f37715df697e9e
LU-5305 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>
Change-Id: I2d36adcf85f24d5347279e7809bc571a56d87f1e
Reviewed-on: http://review.whamcloud.com/11017
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
lustre/ldlm/ldlm_resource.c