]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Fix wrong return value checking when GETFLAGS
authorZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Tue, 15 Nov 2022 10:39:34 +0000 (18:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Nov 2022 16:42:16 +0000 (17:42 +0100)
commit15ce688aafe7c0c638fe12f504fe981914fbb1f4
treea914d27f1ea44e10646f869eacbd9fecdca73d52
parentcf8202738693fd35bb6e0f09fcadf9adf98c0aa8
cifs: Fix wrong return value checking when GETFLAGS

[ Upstream commit a0629e5725c169977fd352d39ccedf452e2fb34e ]

The return value of CIFSGetExtAttr is negative, should be checked
with -EOPNOTSUPP rather than EOPNOTSUPP.

Fixes: 4c50793550fd ("Allow setting per-file compression via SMB2/3")
Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/ioctl.c