From: Jeff Layton Date: Thu, 27 Jun 2013 16:45:00 +0000 (-0400) Subject: cifs: fix SMB2 signing enablement in cifs_enable_signing X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~20^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50285882fdd919e2b9617fc844b4816b7833f115;p=pandora-kernel.git cifs: fix SMB2 signing enablement in cifs_enable_signing Commit 9ddec56131 (cifs: move handling of signed connections into separate function) broke signing on SMB2/3 connections. While the code to enable signing on the connections was very similar between the two, the bits that get set in the sec_mode are different. Declare a couple of new smb_version_values fields and set them appropriately for SMB1 and SMB2/3. Then change cifs_enable_signing to use those instead. Reported-by: Shirish Pargaonkar Signed-off-by: Jeff Layton Tested-by: Shirish Pargaonkar Signed-off-by: Steve French --- Reading git-diff-tree failed