summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2014-12-10 15:52:22 -0800
committerJiri Slaby <jslaby@suse.cz>2015-01-07 17:55:17 +0100
commit6186e5361e7cfdc13545f468fe65d195fcf08e5f (patch)
tree4d9a0d8f1e6eb5aece64448197f513c297dbf9c5 /kernel
parent4f62b27e2776ea102579e9d2fbcc9660b89caa53 (diff)
downloadlwn-6186e5361e7cfdc13545f468fe65d195fcf08e5f.tar.gz
lwn-6186e5361e7cfdc13545f468fe65d195fcf08e5f.zip
ncpfs: return proper error from NCP_IOC_SETROOT ioctl
commit a682e9c28cac152e6e54c39efcf046e0c8cfcf63 upstream. If some error happens in NCP_IOC_SETROOT ioctl, the appropriate error return value is then (in most cases) just overwritten before we return. This can result in reporting success to userspace although error happened. This bug was introduced by commit 2e54eb96e2c8 ("BKL: Remove BKL from ncpfs"). Propagate the errors correctly. Coverity id: 1226925. Fixes: 2e54eb96e2c80 ("BKL: Remove BKL from ncpfs") Signed-off-by: Jan Kara <jack@suse.cz> Cc: Petr Vandrovec <petr@vandrovec.name> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions