summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-zydacron.c
diff options
context:
space:
mode:
authorMd Haris Iqbal <haris.iqbal@cloud.ionos.com>2020-09-07 12:22:16 +0200
committerJason Gunthorpe <jgg@nvidia.com>2020-09-09 18:28:14 +0200
commit39c2d639ca183a400ba3259fa0825714cbb09c53 (patch)
treecb79db5399343e6f58b8ebd86213f795dcbc106a /drivers/hid/hid-zydacron.c
parentRDMA/bnxt_re: Remove set but not used variable 'qplib_ctx' (diff)
downloadlinux-39c2d639ca183a400ba3259fa0825714cbb09c53.tar.xz
linux-39c2d639ca183a400ba3259fa0825714cbb09c53.zip
RDMA/rtrs-srv: Set .release function for rtrs srv device during device init
The device .release function was not being set during the device initialization. This was leading to the below warning, in error cases when put_srv was called before device_add was called. Warning: Device '(null)' does not have a release() function, it is broken and must be fixed. See Documentation/kobject.txt. So, set the device .release function during device initialization in the __alloc_srv() function. Fixes: baa5b28b7a47 ("RDMA/rtrs-srv: Replace device_register with device_initialize and device_add") Link: https://lore.kernel.org/r/20200907102216.104041-1-haris.iqbal@cloud.ionos.com Signed-off-by: Md Haris Iqbal <haris.iqbal@cloud.ionos.com> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Acked-by: Jack Wang <jinpu.wang@cloud.ionos.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/hid/hid-zydacron.c')
0 files changed, 0 insertions, 0 deletions