diff options
author | Mike Christie <[email protected]> | 2010-02-10 16:51:44 -0600 |
---|---|---|
committer | James Bottomley <[email protected]> | 2010-02-17 13:40:07 -0600 |
commit | 9010b94636312c7fb12b591ef09e915f8f80bbd5 (patch) | |
tree | d84995617c8d9b1ac9b5dba2576c28a2429cc58f /lib/string_helpers.c | |
parent | d9573e7af16de0e3aa55db1703dbe544faf391de (diff) |
[SCSI] cxgb3i: check for setup netdev
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 <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions