Re: [PATCH v4] scsi: libfc: Fix passing zero to 'PTR_ERR' warning
From: Martin K. Petersen
Date: Tue Sep 15 2020 - 17:55:48 EST
YueHaibing,
> drivers/scsi/libfc/fc_disc.c:304
> fc_disc_error() warn: passing zero to 'PTR_ERR'
>
> fp maybe NULL in fc_disc_error(), use PTR_ERR_OR_ZERO to handle this.
Applied to 5.10/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering