SMB3: Fix oops when creating symlinks on smb3
authorSteve French <smfrench@gmail.com>
Mon, 15 Sep 2014 04:27:09 +0000 (23:27 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 21:52:17 +0000 (14:52 -0700)
commitd51afb094e833d28085f2a6c35b179260d981bb2
treed8c2a9385df8621eb0b55e1f7a4ef6f7296fad14
parent8e3006d02b46a722729a3bbd6a774eae99c6c8b8
SMB3: Fix oops when creating symlinks on smb3

commit da80659d4aa758dc6935b10ec64513f0b67bc969 upstream.

We were not checking for symlink support properly for SMB2/SMB3
mounts so could oops when mounted with mfsymlinks when try
to create symlink when mfsymlinks on smb2/smb3 mounts

Signed-off-by: Steve French <smfrench@gmail.com>
CC: Sachin Prabhu <sprabhu@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/link.c