[SCSI] libfc: fix handling of incoming Discover Address (ADISC) requests
authorJoe Eykholt <jeykholt@cisco.com>
Tue, 25 Aug 2009 21:03:52 +0000 (14:03 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 10 Sep 2009 17:08:02 +0000 (12:08 -0500)
commit8abbe3a42324264c9d5cc4e7c3d265b5be6d82d6
tree72fa0c25fa4337ef0be788a76fdad37615fb7f4c
parent370c3bd05cf02afabea9cd3f2de66202d6b516dc
[SCSI] libfc: fix handling of incoming Discover Address (ADISC) requests

The local port facility has been replying to ADISC requests without
looking to see if the remote port is logged in.  This is incorrect.
An ADISC request requires PLOGI first.  It should be rejected if
the sending remote port is not logged in.

This is like other incoming requests that require login, all of
which should be handled in the remote port module.

Move the ADISC request handling from fc_lport.c to fc_rport.c.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_lport.c
drivers/scsi/libfc/fc_rport.c