aboutsummaryrefslogtreecommitdiffstats
path: root/fs/char_dev.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2017-05-12 17:59:32 +0200
committerSteve French <smfrench@gmail.com>2017-05-12 19:55:56 -0500
commitcd1230070ae1c12fd34cf6a557bfa81bf9311009 (patch)
treebf041ef190ca864408e994002c30eafeb8f86176 /fs/char_dev.c
parentcifs: cifsacl: Use a temporary ops variable to reduce code length (diff)
downloadlinux-dev-cd1230070ae1c12fd34cf6a557bfa81bf9311009.tar.xz
linux-dev-cd1230070ae1c12fd34cf6a557bfa81bf9311009.zip
SMB2: Fix share type handling
In fs/cifs/smb2pdu.h, we have: #define SMB2_SHARE_TYPE_DISK 0x01 #define SMB2_SHARE_TYPE_PIPE 0x02 #define SMB2_SHARE_TYPE_PRINT 0x03 Knowing that, with the current code, the SMB2_SHARE_TYPE_PRINT case can never trigger and printer share would be interpreted as disk share. So, test the ShareType value for equality instead. Fixes: faaf946a7d5b ("CIFS: Add tree connect/disconnect capability for SMB2") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Acked-by: Aurelien Aptel <aaptel@suse.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/char_dev.c')
0 files changed, 0 insertions, 0 deletions