From mboxrd@z Thu Jan 1 00:00:00 1970 From: "ira.weiny" Subject: Re: [PATCH] IB/core: Fix missed clean call in registration path Date: Sun, 21 Feb 2016 20:13:36 -0500 Message-ID: <20160222011334.GA24657@phlsvsds.ph.intel.com> References: <1456071146-28101-1-git-send-email-leonro@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1456071146-28101-1-git-send-email-leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Leon Romanovsky Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Leon Romanovsky List-Id: linux-rdma@vger.kernel.org On Sun, Feb 21, 2016 at 06:12:26PM +0200, Leon Romanovsky wrote: > 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: 3e153a93a1c1 ('IB/core: Save the device attributes on the device > structure') > Signed-off-by: Leon Romanovsky Reviewed-by: Ira Weiny > --- > drivers/infiniband/core/device.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/infiniband/core/device.c b/drivers/infiniband/core/device.c > index 00da80e..94b80a5 100644 > --- a/drivers/infiniband/core/device.c > +++ b/drivers/infiniband/core/device.c > @@ -358,6 +358,7 @@ int ib_register_device(struct ib_device *device, > ret = device->query_device(device, &device->attrs, &uhw); > if (ret) { > printk(KERN_WARNING "Couldn't query the device attributes\n"); > + ib_cache_cleanup_one(device); > goto out; > } > > -- > 2.1.4 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html