git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
IB/ehca: Ensure that guid_entry index is not negative
[pandora-kernel.git]
/
drivers
/
infiniband
/
hw
/
ehca
/
ehca_hca.c
diff --git
a/drivers/infiniband/hw/ehca/ehca_hca.c
b/drivers/infiniband/hw/ehca/ehca_hca.c
index
9209c53
..
8b92f85
100644
(file)
--- a/
drivers/infiniband/hw/ehca/ehca_hca.c
+++ b/
drivers/infiniband/hw/ehca/ehca_hca.c
@@
-319,7
+319,7
@@
int ehca_query_gid(struct ib_device *ibdev, u8 port,
ib_device);
struct hipz_query_port *rblock;
- if (index > 255) {
+ if (index
< 0 || index
> 255) {
ehca_err(&shca->ib_device, "Invalid index: %x.", index);
return -EINVAL;
}