Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7015492rwr; Wed, 10 May 2023 02:37:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6olyqjs/EAoMcTmhThzQM8ctXjDNYQUu0ThVLSj/V0hhsZQ9d1HmIJdLbG7ylI2xbXC3Nu X-Received: by 2002:a17:902:c94b:b0:1ab:14f2:e7e6 with SMTP id i11-20020a170902c94b00b001ab14f2e7e6mr20404852pla.65.1683711425875; Wed, 10 May 2023 02:37:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683711425; cv=none; d=google.com; s=arc-20160816; b=aush5SBc4anwPDXk/T1w+AHfimRouFcocdsU3tjABRpNPdu+WNXkpOja291FJ2HBRQ l/LpvlbIBZnHl+f+IAAPcSjnTmLO2BLz0UQY5nMUYHZlBMshtzdsDaOdBFV4aLpFbc4X tkvah0vRqLzWaJOZyAIaAUnqwzfKaXuHyD4WsfWWz5H0pc0SsXFW3i2bsGFGevDNFpxs k34MTjpaXz/ZoKfQo//hkM36NVn2XEH44mDx8fWukkffikhIo52Py8ZQqGERRYrZ6L9C Mf/nxrjvxsEKbdTo0SOrjcM7JSvrXp9upXJoggUxltF9J7u1DjRCTPZFOu2uV/4O0e35 jJ6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UPjOky4wVfoGMyabe8FpK2zSAYDV6t7zuht4zbsnWoo=; b=zeb4R9rZb3fmtXiy/3c0J/BHj6dSAPepW/jcJtODCnUoB/UwbzrVNqvEtdfm+urVPp LE+nifzJGl2uzqAeG6fQTUd30qcjRoXRvGxASLnaHoRah6ub4e9UHxCjCC5vxa3C24vk hR82gbdB9Ibgt9rlOxdPZKHLTixgmmALn3/iTNIC44p/Ic0ebg8eA+GLpRcr4PmhHnzC kNeYYNm+V5JrvHG0bO3j+QVZWTOrWPx0cJHnbT1fVM8HGx+HhggFbOtSBLsjUTizbOOq fiN6eTExcxfJILecVXvt5VdiMrGysD8yrzzpxyF3y7RvxUtgdalzU36UCA+P4ylF2IeC rLOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RxkQX5Yx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b3-20020a170902d50300b001aae905065csi3756233plg.284.2023.05.10.02.36.51; Wed, 10 May 2023 02:37:05 -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=pass header.i=@intel.com header.s=Intel header.b=RxkQX5Yx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236316AbjEJJCt (ORCPT + 99 others); Wed, 10 May 2023 05:02:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236146AbjEJJCo (ORCPT ); Wed, 10 May 2023 05:02:44 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B2DDEE; Wed, 10 May 2023 02:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683709363; x=1715245363; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6C2agmSbZSwTDSfdtmIub+xFb/NojGZUrPYyBA6qtkc=; b=RxkQX5Yx6JEhID6pYTBW5k2CZVuykJPZZq4vt2v3UYw6+mVa6e4Fate0 zDmrHTUxj/qu3W9m7EZ3nzlxWyyaA/Ot6/Ga7TbiI5f8n+VCp0nNQypYd 2xfQq0dpFII9ovkFmXj7k8Iu4Kpd6kwaqOsfXKG4E4PIq5YHac2Mh8vmT ctV+p805aCYauLQSuENLI0rCCdVTyZd+OemYVxhpND3PPvgESu6UuoowL fOdT913yBK1Mk7JP1R/Zo6U6f0OTv3TGKyF16PrMMY9lGEJklVygZ1ME/ LoquwwtBnpihrcu74z8SrtHFC2YJmqOQE9RwQ6xKf5CnskZnrj5yus5zR Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="330529930" X-IronPort-AV: E=Sophos;i="5.99,264,1677571200"; d="scan'208";a="330529930" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2023 02:02:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="1029133060" X-IronPort-AV: E=Sophos;i="5.99,264,1677571200"; d="scan'208";a="1029133060" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga005.fm.intel.com with ESMTP; 10 May 2023 02:02:32 -0700 Received: by black.fi.intel.com (Postfix, from userid 1001) id D88C623E; Wed, 10 May 2023 12:02:41 +0300 (EEST) Date: Wed, 10 May 2023 12:02:41 +0300 From: Mika Westerberg To: wangyouwan@126.com Cc: jarkko.nikula@linux.intel.com, andriy.shevchenko@linux.intel.com, jsd@semihalf.com, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] i2c: fix crash with msgs is NULL points Message-ID: <20230510090241.GO66750@black.fi.intel.com> References: <20230510084057.17313-1-wangyouwan@126.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230510084057.17313-1-wangyouwan@126.com> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 On Wed, May 10, 2023 at 04:40:57PM +0800, wangyouwan@126.com wrote: > From: youwan Wang > > There is some probability that msgs is empty What probabability 0/100? ;-) Can you point a real case when this can happen?