diff options
| author | Swapnil Pimpale <spimpale@ddn.com> | 2014-02-09 11:51:46 +0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-12 00:09:57 +0400 |
| commit | 7486bc06ab2c46d6957f0211d09bc549aaf9cc87 (patch) | |
| tree | 2d3c4ffe4b1cbe78ca86a92269ef9ec93b6b6614 /include/linux/timerqueue.h | |
| parent | f34b6cd3ee6c3cd80ce6ccfb1be203145718807f (diff) | |
| download | linux-7486bc06ab2c46d6957f0211d09bc549aaf9cc87.tar.xz | |
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 <spimpale@ddn.com>
Reviewed-on: http://review.whamcloud.com/7460
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3807
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
