From: Jan Kara Date: Wed, 10 Dec 2014 23:52:22 +0000 (-0800) Subject: ncpfs: return proper error from NCP_IOC_SETROOT ioctl X-Git-Tag: omap-for-v3.19/fixes-rc1~142^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a682e9c28cac152e6e54c39efcf046e0c8cfcf63;p=pandora-kernel.git ncpfs: return proper error from NCP_IOC_SETROOT ioctl 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 Cc: Petr Vandrovec Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed