Re: [patch 1/2] IB/hns: Fix a couple pointer math bugs

2016-10-14 Thread oulijun
在 2016/10/14 15:28, Dan Carpenter 写道: > "wqe" is a void pointer so adding sizeof() works. The original code > adds sizeof() multiplied by sizeof() so it doesn't work at all. > > Fixes: 9a4435375cd1 ('IB/hns: Add driver files for hns RoCE driver') > Signed-off-by: Dan Carpenter > > diff --git a/

[patch 1/2] IB/hns: Fix a couple pointer math bugs

2016-10-14 Thread Dan Carpenter
"wqe" is a void pointer so adding sizeof() works. The original code adds sizeof() multiplied by sizeof() so it doesn't work at all. Fixes: 9a4435375cd1 ('IB/hns: Add driver files for hns RoCE driver') Signed-off-by: Dan Carpenter diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c b/driver