]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Fix missing RDMA cgroups release in case of failure to register device
authorParav Pandit <parav@mellanox.com>
Sun, 25 Feb 2018 11:39:56 +0000 (13:39 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 28 Feb 2018 19:10:32 +0000 (12:10 -0700)
commit0f9a56dcc4092e94e360b2f71dfc3111dc17ca49
treec10ceb65609ea83653be50e6548afa212b425902
parent0370f2d1db3c2a8a43cf5d9780669a4fdf06aace
IB/core: Fix missing RDMA cgroups release in case of failure to register device

During IB device registration process, if query_device() fails or if
ib_core fails to registers sysfs entries, rdma cgroup cleanup is
skipped.

Cc: <stable@vger.kernel.org> # v4.2+
Fixes: 267250a89eb2 ("IB/core: Fix kernel crash during fail to initialize device")
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/device.c