cifs: Fix wrong return value checking when GETFLAGS
stable inclusion from stable-v5.10.156 commit e13ef43813ebf0584488df98e21eaa049f920d3d category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I7MCG1 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e13ef43813ebf0584488df98e21eaa049f920d3d -------------------------------- [ Upstream commit 92bbd67a ] The return value of CIFSGetExtAttr is negative, should be checked with -EOPNOTSUPP rather than EOPNOTSUPP. Fixes: 64a5cfa6 ("Allow setting per-file compression via SMB2/3") Signed-off-by: NZhang Xiaoxu <zhangxiaoxu5@huawei.com> Signed-off-by: NSteve French <stfrench@microsoft.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: Nsanglipeng <sanglipeng1@jd.com> (cherry picked from commit ca5052f7)
Showing
想要评论请 注册 或 登录