Files
linux/fs/cifs
Christophe JAILLET e38311ff9e SMB2: Fix share type handling
[ Upstream commit cd1230070a ]

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: faaf946a7d ("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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-13 19:50:04 +02:00
..
2017-10-18 09:20:40 +02:00
2017-05-20 14:27:01 +02:00
2015-06-27 20:23:32 -07:00
2018-02-16 20:09:39 +01:00
2017-02-09 08:02:45 +01:00
2017-06-29 12:48:51 +02:00
2017-05-08 07:46:01 +02:00
2017-10-18 09:20:40 +02:00
2018-04-13 19:50:04 +02:00
2017-09-07 08:34:09 +02:00
2017-05-08 07:46:01 +02:00
2017-05-08 07:46:01 +02:00
2017-05-08 07:46:01 +02:00
2013-09-08 14:54:24 -05:00