OSDN Git Service

staging: qlge: deal with the case that devlink_health_reporter_create fails
authorCoiby Xu <coiby.xu@gmail.com>
Wed, 24 Mar 2021 01:00:01 +0000 (09:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Mar 2021 13:58:13 +0000 (14:58 +0100)
commitd8827ae8e22badd339e1b6225c03a1e417765a3d
treecea07892f588a2a44038ba44d7b0b709e8d0f1ba
parent9c15db92a8e56bcde0f58064ac1adc28c0579b51
staging: qlge: deal with the case that devlink_health_reporter_create fails

devlink_health_reporter_create may fail. In that case, do the cleanup
work.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Coiby Xu <coxu@redhat.com>
Link: https://lore.kernel.org/r/20210324010002.109846-1-coxu@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/qlge/qlge_devlink.c
drivers/staging/qlge/qlge_devlink.h
drivers/staging/qlge/qlge_main.c