From: wang di Date: Tue, 21 Jul 2015 13:27:24 +0000 (-0700) Subject: LU-6875 update: set st to NULL in error handler X-Git-Tag: 2.7.59~28 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=861c70ff6e3371c752d53fcb71cdc54fe74cd3c2;hp=861c70ff6e3371c752d53fcb71cdc54fe74cd3c2 LU-6875 update: set st to NULL in error handler In thandle_get_sub_by_dt, if create sub thandle fails, it should reset st to NULL, otherwise st, whose value is ERR_PTR(rc), might be freeed incorrectly in the following error handler path. Signed-off-by: wang di Change-Id: I7262593fa5aa6bc3f0ed418aaa5637e84077088b Reviewed-on: http://review.whamcloud.com/15691 Tested-by: Jenkins Reviewed-by: James Simmons Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Oleg Drokin ---