]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
scsi: libcxgbi: return error if interface is not up
authorVarun Prakash <varun@chelsio.com>
Fri, 9 Dec 2016 09:10:07 +0000 (14:40 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 14 Dec 2016 20:11:53 +0000 (15:11 -0500)
commit165ae50e450bc7de6c741bf2c27ed0920a40a9af
treef39f9d08913d59828084be709315cb2e39336713
parent1fe1fdb04b92f54b58eb8b71d2f28cf73fd9801c
scsi: libcxgbi: return error if interface is not up

Do not post hw active open cmd if IFF_UP is not set or link is down on
the interface, return -ENETDOWN in this case.

Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxgbi/libcxgbi.c