Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181347
b: refs/heads/master
c: 9010b94
h: refs/heads/master
i:
  181345: 4e59f3b
  181343: 9d52d6c
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed Feb 17, 2010
1 parent 4680b6c commit 17e21f4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d9573e7af16de0e3aa55db1703dbe544faf391de
refs/heads/master: 9010b94636312c7fb12b591ef09e915f8f80bbd5
12 changes: 12 additions & 0 deletions trunk/drivers/scsi/cxgb3i/cxgb3i_iscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,12 @@ static int cxgb3i_host_set_param(struct Scsi_Host *shost,
{
struct cxgb3i_hba *hba = iscsi_host_priv(shost);

if (!hba->ndev) {
shost_printk(KERN_ERR, shost, "Could not set host param. "
"Netdev for host not set.\n");
return -ENODEV;
}

cxgb3i_api_debug("param %d, buf %s.\n", param, buf);

switch (param) {
Expand Down Expand Up @@ -738,6 +744,12 @@ static int cxgb3i_host_get_param(struct Scsi_Host *shost,
struct cxgb3i_hba *hba = iscsi_host_priv(shost);
int len = 0;

if (!hba->ndev) {
shost_printk(KERN_ERR, shost, "Could not set host param. "
"Netdev for host not set.\n");
return -ENODEV;
}

cxgb3i_api_debug("hba %s, param %d.\n", hba->ndev->name, param);

switch (param) {
Expand Down

0 comments on commit 17e21f4

Please sign in to comment.