projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b1eddc
)
RDMA/qedr: Fix use of uninitialized field
author
Michal Kalderon
<michal.kalderon@marvell.com>
Wed, 2 Sep 2020 16:57:36 +0000
(19:57 +0300)
committer
Jason Gunthorpe
<jgg@nvidia.com>
Fri, 11 Sep 2020 13:24:54 +0000
(10:24 -0300)
dev->attr.page_size_caps was used uninitialized when setting device
attributes
Fixes: ec72fce401c6 ("qedr: Add support for RoCE HW init")
Link:
https://lore.kernel.org/r/20200902165741.8355-4-michal.kalderon@marvell.com
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/qedr/main.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/qedr/main.c
b/drivers/infiniband/hw/qedr/main.c
index d85f992bac2991073343d32808441d9e72566297..8e1365951fb6a04152eada15ae3a4a333bea5500 100644
(file)
--- a/
drivers/infiniband/hw/qedr/main.c
+++ b/
drivers/infiniband/hw/qedr/main.c
@@
-602,7
+602,7
@@
static int qedr_set_device_attr(struct qedr_dev *dev)
qed_attr = dev->ops->rdma_query_device(dev->rdma_ctx);
/* Part 2 - check capabilities */
- page_size = ~
dev->attr.
page_size_caps + 1;
+ page_size = ~
qed_attr->
page_size_caps + 1;
if (page_size > PAGE_SIZE) {
DP_ERR(dev,
"Kernel PAGE_SIZE is %ld which is smaller than minimum page size (%d) required by qedr\n",