In case of multiple FCFs, the newly allocated lnode by csio_lnode_alloc()
is completely ignored during link up event. Fix it.

Signed-off-by: P Karthik Jayanth <kart...@chelsio.com>
---
 drivers/scsi/csiostor/csio_lnode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/csiostor/csio_lnode.c 
b/drivers/scsi/csiostor/csio_lnode.c
index ffe9be0..d956f97 100644
--- a/drivers/scsi/csiostor/csio_lnode.c
+++ b/drivers/scsi/csiostor/csio_lnode.c
@@ -873,7 +873,7 @@ csio_handle_link_up(struct csio_hw *hw, uint8_t portid, 
uint32_t fcfi,
                if (ln->vnp_flowid != CSIO_INVALID_IDX) {
                        /* New VN-Port */
                        spin_unlock_irq(&hw->lock);
-                       csio_lnode_alloc(hw);
+                       ln = csio_lnode_alloc(hw);
                        spin_lock_irq(&hw->lock);
                        if (!ln) {
                                csio_err(hw,
-- 
2.0.2

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to