Re: [PATCH] scsi: lpfc: Add the missed misc_deregister() for lpfc_init()

From: James Smart
Date: Tue Aug 04 2020 - 12:23:48 EST




On 7/30/2020 11:56 PM, Jing Xiangfeng wrote:
lpfc_init() misses to call misc_deregister() in an error path. Add a
label 'unregister' to fix it.

Signed-off-by: Jing Xiangfeng <jingxiangfeng@xxxxxxxxxx>
---
drivers/scsi/lpfc/lpfc_init.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)


Looks fine.

Reviewed-by: James Smart <james.smart@xxxxxxxxxxxx>


Thanks

-- james