diff options
author | Jason Gunthorpe <[email protected]> | 2019-05-21 17:55:22 +0000 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2019-05-27 14:35:26 -0300 |
commit | 6875cb175ca7e0c24aa4460ac2b3257fdf662832 (patch) | |
tree | 31a4c1aa8de14bd4aa0c4dacb0aa51feb4a8471d /net/lapb/lapb_in.c | |
parent | 619122be3d40c835eb5fad9e326780909926495d (diff) |
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 <[email protected]>
Fixes: c4367a26357b ("IB: Pass uverbs_attr_bundle down ib_x destroy path")
Reviewed-by: Gal Pressman <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions