]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Sun, 9 Jun 2013 21:52:43 +0000 (16:52 -0500)
commit3f9c09a40fafe9d565e6edf897c81e426339f2a2
tree4b2b675a354c0c595894d7d5196d02c132bb67ef
parent515c02e1e315705d67b1103ab8d2fe03207bc2d6
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