Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19684
b: refs/heads/master
c: 12fc1d7
h: refs/heads/master
v: v3
  • Loading branch information
Jayachandran C authored and Linus Torvalds committed Feb 3, 2006
1 parent 74de459 commit fb967c2
Show file tree
Hide file tree
Showing 2 changed files with 3 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: db9a369ec172c8251dbc6f7bf6bf13f6c5b6e7f5
refs/heads/master: 12fc1d7b4b08a80776de3073439a09f54ce31f8f
4 changes: 2 additions & 2 deletions trunk/drivers/char/ipmi/ipmi_msghandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ int ipmi_validate_addr(struct ipmi_addr *addr, int len)
}

if ((addr->channel == IPMI_BMC_CHANNEL)
|| (addr->channel >= IPMI_NUM_CHANNELS)
|| (addr->channel >= IPMI_MAX_CHANNELS)
|| (addr->channel < 0))
return -EINVAL;

Expand Down Expand Up @@ -1321,7 +1321,7 @@ static int i_ipmi_request(ipmi_user_t user,
unsigned char ipmb_seq;
long seqid;

if (addr->channel >= IPMI_NUM_CHANNELS) {
if (addr->channel >= IPMI_MAX_CHANNELS) {
spin_lock_irqsave(&intf->counter_lock, flags);
intf->sent_invalid_commands++;
spin_unlock_irqrestore(&intf->counter_lock, flags);
Expand Down

0 comments on commit fb967c2

Please sign in to comment.