Home Home > GIT Browse > SLE12-SP5-UPDATE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2019-10-16 14:33:49 +0200
committerMichal Suchanek <msuchanek@suse.de>2019-10-16 14:33:49 +0200
commite9e33a2064bf5c59a03764a273719479533742ed (patch)
tree6322980e2beef673d8a9ced961be0caaf43983cc
parent6906bc3657385b5382542dd5b0cc9ee3a4c636ae (diff)
Refresh patches.suse/RDMA-cxgb4-Do-not-dma-memory-off-of-the-stack.patch
Add upstream metadata, fix build warning. suse-commit: 983d37e2cdca7bbc93af99ba0d8d69fff595818d
-rw-r--r--drivers/infiniband/hw/cxgb4/mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/mem.c b/drivers/infiniband/hw/cxgb4/mem.c
index 8daa7ce9eb4d..00c85140c7ab 100644
--- a/drivers/infiniband/hw/cxgb4/mem.c
+++ b/drivers/infiniband/hw/cxgb4/mem.c
@@ -310,7 +310,7 @@ static int write_tpt_entry(struct c4iw_rdev *rdev, u32 reset_tpt_entry,
/* write TPT entry */
if (reset_tpt_entry)
- memset(tpt, 0, sizeof(tpt));
+ memset(tpt, 0, sizeof(*tpt));
else {
tpt->valid_to_pdid = cpu_to_be32(FW_RI_TPTE_VALID_F |
FW_RI_TPTE_STAGKEY_V((*stag & FW_RI_TPTE_STAGKEY_M)) |