On Tue, Feb 8, 2022 at 5:48 PM Jason Gunthorpe <jgg@xxxxxxxxxx> wrote: > > On Wed, Feb 02, 2022 at 04:08:54PM +0100, Md Haris Iqbal wrote: > > Callback function rtrs_clt_dev_release() for put_device() calls kfree(clt) > > to free memory. We shouldn't call kfree(clt) again, and we can't use the > > clt after kfree too. > > > > Replace device_register with device_initialize and device_add so that > > dev_set_name can be used appropriately. > > > > Move mutex_destroy to release function so it can be called in alloc_clt err > > path. > > > > Signed-off-by: Md Haris Iqbal <haris.iqbal@xxxxxxxxx> > > Reviewed-by: Jack Wang <jinpu.wang@xxxxxxxxx> > > --- > > drivers/infiniband/ulp/rtrs/rtrs-clt.c | 37 ++++++++++++++------------ > > 1 file changed, 20 insertions(+), 17 deletions(-) > > These patches don't apply, please resend them Sure. Will resend. > > Jason