diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2017-05-12 17:59:32 +0200 |
|---|---|---|
| committer | Ben Hutchings <ben@decadent.org.uk> | 2017-09-15 18:29:35 +0100 |
| commit | afa719edf80d92ded6996420d6d255d217288151 (patch) | |
| tree | 3b56b97f8a928d6dbb9f04a7dd9d5d9e22cae26c /kernel/task_work.c | |
| parent | 0a9ee78812f4fcd1926e35190aa45788663edd30 (diff) | |
SMB2: Fix share type handling
commit cd1230070ae1c12fd34cf6a557bfa81bf9311009 upstream.
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'kernel/task_work.c')
0 files changed, 0 insertions, 0 deletions
