]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit9e3a8d3318736e283991f584288c48860ee2699a
tree72fa0c25fa4337ef0be788a76fdad37615fb7f4c
parent1fc7e22c22b4b2115f0140b16b006dbaa4fa2ebf
[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