RDMA/srp: Handle dev_set_name() failure
authorBart Van Assche <bvanassche@acm.org>
Thu, 25 Aug 2022 21:38:59 +0000 (14:38 -0700)
committerLeon Romanovsky <leonro@nvidia.com>
Sun, 28 Aug 2022 10:02:20 +0000 (13:02 +0300)
commit351e458f725da8106eba920f3cdecf39a0e31136
treeff30176db578f4495d113a37fc6ea0d88ee81760
parent0766fcaa1e06d5b5b04f734b788c1556022a9051
RDMA/srp: Handle dev_set_name() failure

Instead of ignoring dev_set_name() failure, handle dev_set_name()
failure. Convert a device_register() call into device_initialize() and
device_add() calls.

Link: https://lore.kernel.org/r/20220825213900.864587-4-bvanassche@acm.org
Reported-by: Bo Liu <liubo03@inspur.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/ulp/srp/ib_srp.c