]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Fix missed clean call in registration path
authorLeon Romanovsky <leon@leon.nu>
Sun, 21 Feb 2016 16:12:26 +0000 (18:12 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 1 Mar 2016 01:41:47 +0000 (20:41 -0500)
commitf01a36468f65163385d68be273b3cb3ad0159d4d
tree1f77f42aafebb111009177b3997de34c53d3ca23
parent5f5757385e0676598ac8bb17b38ff9e7c2f59561
IB/core: Fix missed clean call in registration path

In case of failure returned from query function in
IB device registration, we need to clean IB cache which
was missed.

This change fixes it.

Fixes: 380b65d1d139 ('IB/core: Save the device attributes on the device
structure')
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/device.c