aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/qedr/qedr_roce_cm.c
diff options
context:
space:
mode:
authorMichael J. Ruhl <michael.j.ruhl@intel.com>2018-09-28 07:34:57 -0700
committerJason Gunthorpe <jgg@mellanox.com>2018-09-30 19:21:11 -0600
commit935c84ac649a147e1aad2c48ee5c5a1a9176b2d0 (patch)
treeb62ffae009b24f8062846900adede5cbb02c6d15 /drivers/infiniband/hw/qedr/qedr_roce_cm.c
parentIB/rxe: replace kvfree with vfree (diff)
downloadlinux-dev-935c84ac649a147e1aad2c48ee5c5a1a9176b2d0.tar.xz
linux-dev-935c84ac649a147e1aad2c48ee5c5a1a9176b2d0.zip
IB/hfi1: Error path MAD response size is incorrect
If a MAD packet has incorrect header information, the logic uses the reply path to report the error. The reply path expects *resp_len to be set prior to return. Unfortunately, *resp_len is set to 0 for this path. This causes an incorrect response packet. Fix by ensuring that the *resp_len is defaulted to the incoming packet size (wc->bytes_len - sizeof(GRH)). Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/qedr/qedr_roce_cm.c')
0 files changed, 0 insertions, 0 deletions