cifs: Fix wrong return value checking when GETFLAGS
authorZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Tue, 15 Nov 2022 10:39:34 +0000 (18:39 +0800)
committerSteve French <stfrench@microsoft.com>
Wed, 16 Nov 2022 06:21:04 +0000 (00:21 -0600)
commit92bbd67a55fee50743b42825d1c016e7fd5c79f9
tree2f26e1e6bf386d89495a003d2b6b353355c5f707
parentd520de6cb42e88a1d008b54f935caf9fc05951da
cifs: Fix wrong return value checking when GETFLAGS

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

Fixes: 64a5cfa6db94 ("Allow setting per-file compression via SMB2/3")
Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/ioctl.c