cifs: throw a warning if negotiate or sess_setup ops are passed NULL server or sessio...
authorJeff Layton <jlayton@redhat.com>
Fri, 24 May 2013 11:41:01 +0000 (07:41 -0400)
committerSteve French <smfrench@gmail.com>
Mon, 24 Jun 2013 06:56:40 +0000 (01:56 -0500)
commit3534b8508e4b21eec0b7b839f7234a9b6fe27d03
treeabca5bc7bb74168ffb6a8a9ff09cd99a3217f639
parent7d066459697610f6e755a7cfe199c3c6b142fb85
cifs: throw a warning if negotiate or sess_setup ops are passed NULL server or session pointers

These look pretty cargo-culty to me, but let's be certain. Leave
them in place for now. Pop a WARN if it ever does happen. Also,
move to a more standard idiom for setting the "server" pointer.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifssmb.c
fs/cifs/sess.c
fs/cifs/smb2pdu.c