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/11017Reviewed-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>
Showing
Please register or sign in to comment