aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/iwcm.c
diff options
context:
space:
mode:
authorBernard Metzler <bmt@zurich.ibm.com>2020-03-02 16:58:14 +0100
committerJason Gunthorpe <jgg@mellanox.com>2020-03-04 14:26:23 -0400
commit12e5eef0f4d8087ea7b559f6630be08ffea2d851 (patch)
treebc1d87f903a53c9ecb7234d66f38bb5f7f5940d6 /drivers/infiniband/core/iwcm.c
parentRDMA/nldev: Fix crash when set a QP to a new counter but QPN is missing (diff)
downloadlinux-dev-12e5eef0f4d8087ea7b559f6630be08ffea2d851.tar.xz
linux-dev-12e5eef0f4d8087ea7b559f6630be08ffea2d851.zip
RDMA/siw: Fix failure handling during device creation
A failing call to ib_device_set_netdev() during device creation caused system crash due to xa_destroy of uninitialized xarray hit by device deallocation. Fixed by moving xarray initialization before potential device deallocation. Fixes: bdcf26bf9b3a ("rdma/siw: network and RDMA core interface") Link: https://lore.kernel.org/r/20200302155814.9896-1-bmt@zurich.ibm.com Reported-by: syzbot+2e80962bedd9559fe0b3@syzkaller.appspotmail.com Signed-off-by: Bernard Metzler <bmt@zurich.ibm.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions