From: Swapnil Pimpale Date: Sun, 9 Feb 2014 07:51:46 +0000 (-0500) Subject: lustre: Unsafe error handling around ll_splice_alias X-Git-Tag: v3.15-rc1~139^2~1196 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7486bc06ab2c46d6957f0211d09bc549aaf9cc87;p=pandora-kernel.git lustre: Unsafe error handling around ll_splice_alias Callers of ll_splice_alias() should not assign the returned pointer to the dentry since it can be an err pointer. Fixed the above bug using a temporary dentry pointer. This temporary pointer is assigned to dentry only if ll_splice_alias has not returned an err pointer. Signed-off-by: Swapnil Pimpale Reviewed-on: http://review.whamcloud.com/7460 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3807 Reviewed-by: Fan Yong Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed