Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86971
b: refs/heads/master
c: 51f39ea
h: refs/heads/master
i:
  86969: c6acab1
  86967: 47294e6
v: v3
  • Loading branch information
Krzysztof Oledzki authored and James Bottomley committed Mar 5, 2008
1 parent 78058fa commit 6f82b41
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 45ab33b6c190c4a8c58f1d13be2ff89ee62024ba
refs/heads/master: 51f39eae14b4874618e73281c236e3a1c1572d4d
5 changes: 5 additions & 0 deletions trunk/drivers/message/fusion/mptsas.c
Original file line number Diff line number Diff line change
Expand Up @@ -1701,6 +1701,11 @@ mptsas_sas_expander_pg0(MPT_ADAPTER *ioc, struct mptsas_portinfo *port_info,
if (error)
goto out_free_consistent;

if (!buffer->NumPhys) {
error = -ENODEV;
goto out_free_consistent;
}

/* save config data */
port_info->num_phys = buffer->NumPhys;
port_info->phy_info = kcalloc(port_info->num_phys,
Expand Down

0 comments on commit 6f82b41

Please sign in to comment.