Re: [PATCH 2/5] scsi: libsas: check the lldd callback correctly

From: John Garry
Date: Mon Sep 17 2018 - 04:12:13 EST


On 12/09/2018 09:29, Jason Yan wrote:
We are using lldd_port_deformed so we'd better check if lldd_port_deformed
is NULL.

After this, we can remove hisi_sas_port_deformed() because it is just a
stub to avoid a NULL dereference caused by the wrong check.

Signed-off-by: Jason Yan <yanaijie@xxxxxxxxxx>

Acked-by: John Garry <john.garry@xxxxxxxxxx>

CC: John Garry <john.garry@xxxxxxxxxx>
CC: Johannes Thumshirn <jthumshirn@xxxxxxx>
CC: Ewan Milne <emilne@xxxxxxxxxx>
CC: Christoph Hellwig <hch@xxxxxx>
CC: Tomas Henzl <thenzl@xxxxxxxxxx>
CC: Dan Williams <dan.j.williams@xxxxxxxxx>
CC: Hannes Reinecke <hare@xxxxxxxx>
---