Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2962187imm; Mon, 28 May 2018 21:03:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrCcjVfdPBVsqUvc01IK0YKu+IjmGu16nN3SJDpaXSTnEEMDpsVRJz8OL5W9axYEEWw0zR2 X-Received: by 2002:a17:902:9a4b:: with SMTP id x11-v6mr16231004plv.176.1527566584087; Mon, 28 May 2018 21:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527566584; cv=none; d=google.com; s=arc-20160816; b=inMTVN+uvFxmPC5CwEOG+5fe3BGm5S5e1kgOl7jrvy3CmtVbtmX8NAwfRWFd7LpnT6 FJK72xS2biUUu/4hKW9//w+8gc08c11+osTqtERkcxO7VdySNkG92d+m5MEyBaZf0HXX GIDcsyeKknELUEPetEIILiiNMrNWztJEerYFwwURbXZ0zmspmo0ngtW+SOlWWCvsxcxP KOyuoLN7LRBUPcGL2GdKelTmvLDItM/jgAOQt57V6AdjJrBkdPxSLJEZtIdRb79MQTUp Q+dm95haYTA8E0LbbJzggEJYJezctuYmAFKi2cbyl0pDgwr4Jko31YRrKXQswsTYm0xC uLlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=VS72+V0mNBERsgllDY3pGC49HauUVuaDCR9e9a1bAVA=; b=DyEfJrcfUavDpTtoWKHqQGBCSuF/JldcuNtPwdsWv/gURdTckMCNoIhPY12sscTr61 YoA+MCnMAeEnb8a2Hfbk1YrTBMFRM1wHDNG2HcCPPlM9kP3YfZbhdOEu49f7MfgG4qLX YvjyrNxMzx/tWvvUyKkAXJqOzswnHweRRM0W6Q9mXIL7J8mopHEsEOnvYqwV5MxzGpA+ 7P1Vu1AlU6ShZ9dG8Vrmu0TjCShLQXnOxClm2+sB8lLtgiKPeYMb0jcQmagg0hdXOJly ujJZy1dsoW8Eg9PJ74TNy9+bXlkX8WBddVXlRehfX+uwFxKr1lErZHrolheszSUZU49c LEnw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c3-v6si31897613pfn.245.2018.05.28.21.02.49; Mon, 28 May 2018 21:03:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756070AbeE2COn (ORCPT + 99 others); Mon, 28 May 2018 22:14:43 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:8197 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755996AbeE2COU (ORCPT ); Mon, 28 May 2018 22:14:20 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id DAA3E8E728C89; Tue, 29 May 2018 10:14:06 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.382.0; Tue, 29 May 2018 10:14:01 +0800 From: Jason Yan To: , CC: , , , , , , , , , , , , , Jason Yan , Ewan Milne , Tomas Henzl Subject: [PATCH 2/8] scsi: libsas: check the lldd callback correctly Date: Tue, 29 May 2018 10:23:03 +0800 Message-ID: <20180529022309.21071-3-yanaijie@huawei.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180529022309.21071-1-yanaijie@huawei.com> References: <20180529022309.21071-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We are using lldd_port_deformed so we'd better check if lldd_port_deformed is NULL. Signed-off-by: Jason Yan CC: John Garry CC: Johannes Thumshirn CC: Ewan Milne CC: Christoph Hellwig CC: Tomas Henzl CC: Dan Williams CC: Hannes Reinecke --- drivers/scsi/libsas/sas_discover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/libsas/sas_discover.c b/drivers/scsi/libsas/sas_discover.c index a0fa7ef3a071..354f6db5bb66 100644 --- a/drivers/scsi/libsas/sas_discover.c +++ b/drivers/scsi/libsas/sas_discover.c @@ -260,7 +260,7 @@ static void sas_suspend_devices(struct work_struct *work) * phy_list is not being mutated */ list_for_each_entry(phy, &port->phy_list, port_phy_el) { - if (si->dft->lldd_port_formed) + if (si->dft->lldd_port_deformed) si->dft->lldd_port_deformed(phy); phy->suspended = 1; port->suspended = 1; -- 2.13.6