Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277815
b: refs/heads/master
c: 1eb54c8
h: refs/heads/master
i:
  277813: ffde1e1
  277811: 94bcfe3
  277807: d801f5f
v: v3
  • Loading branch information
Dan Carpenter authored and John W. Linville committed Nov 9, 2011
1 parent db305ab commit 07b3c3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7d7ab02204ae2af26944ccd8a4c599756bdf0fc3
refs/heads/master: 1eb54c8a0fa0061247f3bd327b320c3e20c97340
5 changes: 4 additions & 1 deletion trunk/drivers/net/wireless/mwifiex/pcie.c
Original file line number Diff line number Diff line change
Expand Up @@ -1228,9 +1228,12 @@ static int mwifiex_pcie_event_complete(struct mwifiex_adapter *adapter,
if (!skb)
return 0;

if (rdptr >= MWIFIEX_MAX_EVT_BD)
if (rdptr >= MWIFIEX_MAX_EVT_BD) {
dev_err(adapter->dev, "event_complete: Invalid rdptr 0x%x\n",
rdptr);
ret = -EINVAL;
goto done;
}

/* Read the event ring write pointer set by firmware */
if (mwifiex_read_reg(adapter, REG_EVTBD_WRPTR, &wrptr)) {
Expand Down

0 comments on commit 07b3c3a

Please sign in to comment.