Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31563
b: refs/heads/master
c: 8532294
h: refs/heads/master
i:
  31561: 33d7cf7
  31559: 5204d89
v: v3
  • Loading branch information
Bryan O'Sullivan authored and Linus Torvalds committed Jul 1, 2006
1 parent 7d77cc8 commit 7e3b2fd
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: 7cd658cd2bca48d3a0e747b4525c72eb8855278e
refs/heads/master: 85322947d761d08bd84165500f35b93c702aaaf3
4 changes: 2 additions & 2 deletions trunk/drivers/infiniband/hw/ipath/ipath_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ static ssize_t store_lid(struct device *dev,
if (ret < 0)
goto invalid;

if (lid == 0 || lid >= 0xc000) {
if (lid == 0 || lid >= IPS_MULTICAST_LID_BASE) {
ret = -EINVAL;
goto invalid;
}
Expand Down Expand Up @@ -314,7 +314,7 @@ static ssize_t store_mlid(struct device *dev,
int ret;

ret = ipath_parse_ushort(buf, &mlid);
if (ret < 0)
if (ret < 0 || mlid < IPS_MULTICAST_LID_BASE)
goto invalid;

unit = dd->ipath_unit;
Expand Down

0 comments on commit 7e3b2fd

Please sign in to comment.