]> git.baikalelectronics.ru Git - kernel.git/commit
Fix coverity warning
authorSteve French <smfrench@gmail.com>
Fri, 27 Mar 2015 03:41:59 +0000 (22:41 -0500)
committerSteve French <smfrench@gmail.com>
Wed, 1 Apr 2015 05:01:47 +0000 (00:01 -0500)
commit41e7ad7e5e267ef1513bd168f5f4f85b9a8bfecc
treea5f6e9f1614b7f0b8c37c29f3097e2f112eb8bb5
parentec0618deaaf89938f4ef6eeeba694476e3449aba
Fix coverity warning

Coverity reports a warning for referencing the beginning of the
SMB2/SMB3 frame using the ProtocolId field as an array. Although
it works the same either way, this patch should quiet the warning
and might be a little clearer.

Reported by Coverity (CID 741269)

Signed-off-by: Steve French <smfrench@gmail.com>
Acked-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Acked-by: Sachin Prabhu <sprabhu@redhat.com>
Reviewed-by: Jeff Layton <jlayton@poochiereds.net>
fs/cifs/smb2misc.c