Christophe JAILLET cd1230070a 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>
2017-05-12 19:55:56 -05:00
..
2016-10-13 19:48:11 -05:00
2017-04-07 08:04:41 -05:00
2017-05-03 10:10:10 -05:00
2013-11-08 05:57:46 +09:00
2017-05-03 19:32:35 -05:00
2016-12-15 00:21:37 -06:00
2017-05-03 10:10:10 -05:00
2017-01-14 14:58:29 -06:00
2007-06-05 18:30:44 +00:00
2017-03-02 23:13:37 -06:00
2017-05-03 10:10:10 -05:00
2017-05-12 19:55:56 -05:00
2017-04-07 08:04:40 -05:00
2012-07-24 10:25:13 -05:00
2013-09-08 14:54:24 -05:00