[SCSI] iscsi_tcp: check for valid session before accessing
authorMike Christie <michaelc@cs.wisc.edu>
Fri, 7 Feb 2014 06:41:42 +0000 (00:41 -0600)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:19:19 +0000 (10:19 -0700)
commiteee2b5c840d93f704554f4a2884cef72742f22e2
tree48754404f215a393fa2025e997357edeb7e9ea75
parent9cb48e7b9efb02beedb874855c74a226c1b08f6b
[SCSI] iscsi_tcp: check for valid session before accessing

Check that the session is setup before accessing its
connection. This fixes a oops where userspace tries
to get the ip address before the session is bound to
a host.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/iscsi_tcp.c