Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp173041rwe; Wed, 31 Aug 2022 19:04:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR5dU0tGXegdsRp7MA9FQTvQAhMKfMmVFXl6Ma0WS38XGXidRc0SgAyvxmh5f483rrKddWNV X-Received: by 2002:a17:902:ef95:b0:174:3bad:6560 with SMTP id iz21-20020a170902ef9500b001743bad6560mr28135573plb.109.1661997860185; Wed, 31 Aug 2022 19:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661997860; cv=none; d=google.com; s=arc-20160816; b=cky2yKLMIRZDqd3Np/zKy3FcuZzKbUoBbwlsUtTOIsrxoLwioBZkRgmGgDYWaGkGH8 uf4mkopVBHAtMH9y4ZcFR0qufPNNHJXza/202MKZJPVhQSq2RGX6oQsG60Q/GJ92ytxA kxPZweh5IeQFdLk12GuPc9wrDwOfqSUEN2ukfKdpq5/s7/3xq3ijEUasvmizHE8D7RF0 RiWHlfdiBIKl8Fc75LD1wsu0sDnpqXI9a11q+znrO1J0K5+HLq9sywzHwh9l/fM90kRZ pQnCc//mRNMI5RI3/hKgCWkOwFMdNrQWicKOs5rpQVIpt1iBHHhK7upJnLCpGofEKCmk 3g8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:references:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=KA8LSMfeQtx71P91o4ZGl0KIj/t6WjF+bk25ikCfItE=; b=lwCIlxIRKqeIBVQYBDlHQOFKhyF3xTLDVVCNrxeva2UMXHj2zJ8iu/Yw+U9TyZYuC1 WlSjtbSE7NQJ5gzuIrnuuXDpVbyGsHocIzfZGb5mbyKWbgrEEs92+xEpqkmF2TRJewNi QTSOcyVoUOMdyb/uqkjnhmE0KNfiLHAS+Xdp/UhyBuZdltak0n+IK5qm99QUnuLvES1F OC4M8ezdGwobmQ7zY5x3AA+DRNxuW4+KZ+6VYljXTknUzhwt0dcv1iwdew3ZGRlgpuJS Ql8FdoRR5/iOc3AErMwBTMNTJHHRzVbRV3oJj04tsgFxn+xvPSy9gq521marr2ihbCnR 9uSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@163.com header.s=s110527 header.b=fndzgPbn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o37-20020a635a25000000b0042ac2632327si6241829pgb.249.2022.08.31.19.03.52; Wed, 31 Aug 2022 19:04:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@163.com header.s=s110527 header.b=fndzgPbn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232493AbiIAB1I (ORCPT + 99 others); Wed, 31 Aug 2022 21:27:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbiIAB1F (ORCPT ); Wed, 31 Aug 2022 21:27:05 -0400 X-Greylist: delayed 905 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 31 Aug 2022 18:27:03 PDT Received: from m13124.mail.163.com (m13124.mail.163.com [220.181.13.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5807DF8ED0; Wed, 31 Aug 2022 18:27:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:MIME-Version:Message-ID; bh=wklvF McU6a1O/ieCwawStIn4ZJ23CQ5U9F/SjOyVnuQ=; b=fndzgPbnVx87DSou+W9fF KtD5VtGjL6M3UXMjr2mTfqjyvHuN9l8nmGydOl2rizSr613GyD9C+sxq3qJ1G5b3 5aOIT1dVmYBPKvz5cQP/nIoPFWaBp061lhQpT8ZYvW6GM7vfkua2lQ6umhzEWZ7m wf7kKrZhT4eRK0EiimIGss= Received: from 15815827059$163.com ( [116.128.244.169] ) by ajax-webmail-wmsvr124 (Coremail) ; Thu, 1 Sep 2022 09:11:13 +0800 (CST) X-Originating-IP: [116.128.244.169] Date: Thu, 1 Sep 2022 09:11:13 +0800 (CST) From: huhai <15815827059@163.com> To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: sathya.prakash@broadcom.com, sreekanth.reddy@broadcom.com, suganath-prabu.subramani@broadcom.com, MPT-FusionLinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, huhai , stable@vger.kernel.org, "Jackie Liu" Subject: Re:[PATCH] scsi: mpt3sas: Fix NULL pointer crash due to missing check device hostdata X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.13 build 20220113(9671e152) Copyright (c) 2002-2022 www.mailtech.cn 163com In-Reply-To: <20220825092645.326953-1-15815827059@163.com> References: <20220825092645.326953-1-15815827059@163.com> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=GBK MIME-Version: 1.0 Message-ID: <49b0768d.96d.182f69a26f6.Coremail.15815827059@163.com> X-Coremail-Locale: zh_CN X-CM-TRANSID: fMGowAB3OWGyBhBjz2NIAA--.53649W X-CM-SenderInfo: rprvmiivyslimvzbiqqrwthudrp/1tbiHQ9phWI66iLJ0wACs2 X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FROM_LOCAL_DIGITS, FROM_LOCAL_HEX,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJpZW5kbHkgcGluZy4KCgpBdCAyMDIyLTA4LTI1IDE3OjI2OjQ1LCAiaHVoYWkiIDwxNTgxNTgy NzA1OUAxNjMuY29tPiB3cm90ZToKPkZyb206IGh1aGFpIDxodWhhaUBreWxpbm9zLmNuPgo+Cj5J ZiBfc2NzaWhfaW9fZG9uZSgpIGlzIGNhbGxlZCB3aXRoIHNjbWQtPmRldmljZS0+aG9zdGRhdGE9 TlVMTCwgaXQgY2FuIGxlYWQKPnRvIHRoZSBmb2xsb3dpbmcgcGFuaWM6Cj4KPiAgQlVHOiB1bmFi bGUgdG8gaGFuZGxlIGtlcm5lbCBOVUxMIHBvaW50ZXIgZGVyZWZlcmVuY2UgYXQgMDAwMDAwMDAw MDAwMDAxOAo+ICBQR0QgNDU0N2E0MDY3IFA0RCA0NTQ3YTQwNjcgUFVEIDAKPiAgT29wczogMDAw MiBbIzFdIFNNUCBOT1BUSQo+ICBDUFU6IDYyIFBJRDogMCBDb21tOiBzd2FwcGVyLzYyIEtkdW1w OiBsb2FkZWQgTm90IHRhaW50ZWQgNC4xOS45MC0yNC40LnYyMTAxLmt5MTAueDg2XzY0ICMxCj4g IEhhcmR3YXJlIG5hbWU6IFN0b3JhZ2UgU2VydmVyLzY1TjMyLVVTLCBCSU9TIFNRTDEwNDEyMTcg MDUvMzAvMjAyMgo+ICBSSVA6IDAwMTA6X3Njc2loX3NldF9zYXRsX3BlbmRp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