Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 341957
b: refs/heads/master
c: 6dac344
h: refs/heads/master
i:
  341955: c33ad6f
v: v3
  • Loading branch information
Dan Carpenter authored and John W. Linville committed Dec 3, 2012
1 parent db47544 commit d04087b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 06ef5c4bbb9816e7a7eb44917f11c2e3375fb51a
refs/heads/master: 6dac3447425d932fa76a4e69d32eead9dd090b27
5 changes: 3 additions & 2 deletions trunk/drivers/net/wireless/p54/eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,9 @@ static int p54_parse_rssical(struct ieee80211_hw *dev,
entries = (len - offset) /
sizeof(struct pda_rssi_cal_ext_entry);

if ((len - offset) % sizeof(struct pda_rssi_cal_ext_entry) ||
entries <= 0) {
if (len < offset ||
(len - offset) % sizeof(struct pda_rssi_cal_ext_entry) ||
entries == 0) {
wiphy_err(dev->wiphy, "invalid rssi database.\n");
goto err_data;
}
Expand Down

0 comments on commit d04087b

Please sign in to comment.