projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ec01ff
)
IB/ipath: Fix incorrect check for max physical address in TID
author
Dave Olson
<dave.olson@qlogic.com>
Fri, 15 Aug 2008 18:25:20 +0000
(11:25 -0700)
committer
Roland Dreier
<rolandd@cisco.com>
Fri, 15 Aug 2008 18:25:20 +0000
(11:25 -0700)
The check for max physical address was incorrect, thus limiting the
range of allowed physical addresses.
Signed-off-by: Dave Olson <dave.olson@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_iba7220.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/ipath/ipath_iba7220.c
b/drivers/infiniband/hw/ipath/ipath_iba7220.c
index d90f5e9a54faf8b16c790eab5a7af4ade2a022af..9839e20119bcfc64f483f68cf2b18d24e1786f77 100644
(file)
--- a/
drivers/infiniband/hw/ipath/ipath_iba7220.c
+++ b/
drivers/infiniband/hw/ipath/ipath_iba7220.c
@@
-1720,7
+1720,7
@@
static void ipath_7220_put_tid(struct ipath_devdata *dd, u64 __iomem *tidptr,
"not 2KB aligned!\n", pa);
return;
}
- if (pa >= (1UL << IBA7220_TID_SZ_SHIFT)) {
+ if (
chip
pa >= (1UL << IBA7220_TID_SZ_SHIFT)) {
ipath_dev_err(dd,
"BUG: Physical page address 0x%lx "
"larger than supported\n", pa);