[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5F620166.7070305@huawei.com>
Date: Wed, 16 Sep 2020 20:13:26 +0800
From: Jing Xiangfeng <jingxiangfeng@...wei.com>
To: "Martin K. Petersen" <martin.petersen@...cle.com>
CC: <linuxdrivers@...otech.com>, <jejb@...ux.ibm.com>,
<linux-scsi@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] scsi: esas2r: prevent a potential NULL dereference in
esas2r_probe()
On 2020/9/16 5:44, Martin K. Petersen wrote:
>
> 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?
There is already a message before the scsi_host_put() call. It is used
to record calling function.
>
Powered by blists - more mailing lists