linux/drivers/infiniband/hw/bnxt_re
Selvin Xavier 4a62c5e9e2 RDMA/bnxt_re: Do not free the ctx_tbl entry if delete GID fails
This fix is added only to avoid system crash in some a
specific scenario. When bnxt_re driver is loaded and if
user tries to change interface mac address, delete GID
fails because QP1 is still associated with existing MAC
(default GID). If the above command fails GID tables are
not modified in the h/w or driver, but the GID context memory
is freed. Now, if the user changes the mac back to the original
value, another add_gid comes to the driver where the driver
reports that the GID is already present in its table
and tries to access the context which was already freed.

So, in this case, in order to  avoid NULL pointer de-reference,
this patch removes the context memory free  if delete_gid fails
and the same context memory is re-used in new add_gid.
Memory cleanup will be taken care during driver unload, while
deleting the GID table.

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-07-20 11:20:50 -04:00
..
Kconfig
Makefile
bnxt_re.h RDMA/bnxt_re: Fix RQE posting logic 2017-06-14 13:01:59 -04:00
ib_verbs.c RDMA/bnxt_re: Do not free the ctx_tbl entry if delete GID fails 2017-07-20 11:20:50 -04:00
ib_verbs.h RDMA/bnxt_re: Free doorbell page index (DPI) during dealloc ucontext 2017-07-20 11:20:49 -04:00
main.c RDMA/bnxt_re: Remove FMR support 2017-06-14 13:02:00 -04:00
qplib_fp.c RDMA/bnxt_re: Fix WQE Size posted to HW to prevent it from throwing error 2017-07-20 11:20:49 -04:00
qplib_fp.h RDMA/bnxt_re: Add HW workaround for avoiding stall for UD QPs 2017-06-14 13:01:58 -04:00
qplib_rcfw.c RDMA/bnxt_re: Fixing the Control path command and response handling 2017-06-13 16:09:04 -04:00
qplib_rcfw.h RDMA/bnxt_re: Fixing the Control path command and response handling 2017-06-13 16:09:04 -04:00
qplib_res.c
qplib_res.h RDMA/bnxt_re: HW workarounds for handling specific conditions 2017-06-14 13:01:57 -04:00
qplib_sp.c RDMA/bnxt_re: HW workarounds for handling specific conditions 2017-06-14 13:01:57 -04:00
qplib_sp.h RDMA/bnxt_re: HW workarounds for handling specific conditions 2017-06-14 13:01:57 -04:00
roce_hsi.h