[SCSI] cxgb3i: check for setup netdev
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 10 Feb 2010 22:51:44 +0000 (16:51 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 17 Feb 2010 19:40:07 +0000 (13:40 -0600)
If the netdev has not been setup when the host is, we will oops when
the iscsi layer calls into the driver and a it tries to reference the
netdev in hba->ndev.

This can happen if the iscsi driver is loaded before ifup is
done. This patch just adds a check, so we can gracefully fail the
operation.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

No differences found