Whamcloud - gitweb
LU-3807 dcache: Unsafe error handling arnd ll_splice_alias 60/7460/4
authorSwapnil Pimpale <spimpale@ddn.com>
Tue, 27 Aug 2013 12:25:46 +0000 (17:55 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 6 Sep 2013 02:41:46 +0000 (02:41 +0000)
commit72afa19c19d5acc359e3304f474ff3b1830672e4
tree6b25bb8cdbb5dbbffe67cfc3c6bda9669286c17e
parent1cd0fdde12df0332b043fc92839b3bd94c6213e1
LU-3807 dcache: Unsafe error handling arnd 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 <spimpale@ddn.com>
Change-Id: I0cfdeb53b09fa5642ff01a919ded41aed32aad6d
Reviewed-on: http://review.whamcloud.com/7460
Tested-by: Hudson
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/namei.c
lustre/llite/statahead.c