Re: [PATCH] scsi: esas2r: prevent a potential NULL dereference in esas2r_probe()
From: Martin K. Petersen
Date: Tue Sep 15 2020 - 17:46:56 EST
Jing,
> esas2r_probe() calls scsi_host_put() in an error path. However,
> esas2r_log_dev() may hit a potential NULL dereference. So use NUll instead.
Wouldn't it be better to move the scsi_host_put() call after the error
message?
--
Martin K. Petersen Oracle Linux Engineering