]> 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 <sfrench@us.ibm.com>
Fri, 24 May 2013 18:27:14 +0000 (13:27 -0500)
commite078371c51491556c5d97048e40304004aa9fd5c
treeccd42debbc8cf7fdb6b8a8b64b1670584753b12f
parentdb663caedc1e1f7f6a9c0859d097d95ef27bae0b
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