linux_dsm_epyc7002/drivers/infiniband
Jason Gunthorpe 6875cb175c RDMA/core: Clear out the udata before error unwind
The core code should not pass a udata to the driver destroy function that
contains the input from the create command. Otherwise the driver will
attempt to interpret the create udata as destroy udata, and at least in
the case of EFA, will leak resources.

Zero this stuff out before invoking destroy.

Reported-by: Leon Romanovsky <leonro@mellanox.com>
Fixes: c4367a2635 ("IB: Pass uverbs_attr_bundle down ib_x destroy path")
Reviewed-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-05-27 14:35:26 -03:00
..
core RDMA/core: Clear out the udata before error unwind 2019-05-27 14:35:26 -03:00
hw RDMA/hns: Fix PD memory leak for internal allocation 2019-05-21 15:25:37 -03:00
sw 5.2 Merge Window pull request 2019-05-09 09:02:46 -07:00
ulp RDMA/srp: Rename SRP sysfs name after IB device rename trigger 2019-05-21 15:06:45 -03:00
Kconfig 5.2 Merge Window pull request 2019-05-09 09:02:46 -07:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00