Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3204485lqp; Tue, 26 Mar 2024 02:39:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWog+2ko9KGziy2zsi905ZAX5LOAdj+CqQkI0YsNXd+ZV+UAbcJf1rU643RmuX1lc3efxY60rvcTo+Wl6J9f+vwzaF/pU9AwHEYE8Lk0w== X-Google-Smtp-Source: AGHT+IGcNOzXhx/zUabKJOG5A/fXN6d+Zwln5iZsHyctozz8W3lytgO26XKTRQwpNrvqUzu+DKqV X-Received: by 2002:a17:906:6a25:b0:a4d:f958:572 with SMTP id qw37-20020a1709066a2500b00a4df9580572mr233999ejc.10.1711445969745; Tue, 26 Mar 2024 02:39:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711445969; cv=pass; d=google.com; s=arc-20160816; b=hjy0Ph8UF1/j09Uayhae5iAzU7I517nXUJ13INTl0Th4JaNVhKdlWDKzEPSbZk7tvE 00Q9cXJi/kX0NMDMvdJmDlb70eLJIwEFWBWdErSQKmGyuQwU7pVoCMeiwV5B17ech6uX jTQvOKwrmFfHX08igjT3sq/Cc7e0XSnGTNKs2Zor2ClIn/I98/f3Ni/EX6qceKNYamj3 QTkZU9VEPty7DKf8OVXBdJ43IfRXYcCLlJiQD260F0bredXUh90oc6nP7zKOxgnorD89 ypfOPPAGaT65uXhQi6yeur0QdGjXyw9jlzlsGKUC0I5q+CGvH6Y9TiFIxa77+EmwmOap ntfw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=keU5XoylUEOxnR0KSgLsOXjM5uHLdorizrYdmz1Q5KY=; fh=CwapWOV+8bdGbdHOOYf8ZkOPMS5tPI/gpZoBtmAMuLs=; b=FY7wnuuZnwRQXtTY2VwsYT3Sndu3i4Kwr3SMUNtW9E+h3OeMTfliNOSn+IVoEJZAyw Ny6bzgB9x8f7XJniuSkW8iuJfHSzVozloKS2r1oiJ4apgnyZVbRlnsQ4Q0SvewqjZ7NY LXcK9sLaX4J4rdHg0MJRJ8Mjwlte8CE75EFP3fedYu+cxU800p9fkgIJbRKVpRAyV8Zz tTTg7GbSY7Es4AEdLAOvqlCNiXH5wCH8k1ErwnCPyX0lQE8G2QybWuUcA/7rn67KxAX8 sJkxHOWnQablpgH4FcQ10RYIBYluSmiEMJ+rzgmnKk/LFIYiVuteV8V3SHkrnF9Fa4KL sAOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="F/G4l/Ou"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-118686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118686-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c15-20020a170906154f00b00a462c4842bbsi3482764ejd.676.2024.03.26.02.39.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 02:39:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="F/G4l/Ou"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-118686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118686-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1E4171F627CD for ; Tue, 26 Mar 2024 09:39:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9427376039; Tue, 26 Mar 2024 09:30:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="F/G4l/Ou" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A40A673539; Tue, 26 Mar 2024 09:30:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711445413; cv=none; b=p5ygQLgF7Mr5TTi/DMyWzVKOz0w096St3QKjploMPXDidlNkKBOvI60owJlQ53dAF1k6pjwJj15lP4Av/KbEhfE1EEtsEASyC/qDvv9lVKlcYbyVxKyuh6d2ak+pDinUezXVY6qyEvh6Qa8QZMhb7FzUaQJ4c8jegqvTTi67BZk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711445413; c=relaxed/simple; bh=TmO8LZS/iJ3ZXxl/r7qHjzUSiyZSbemk8sv8R3kPSOI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MMYpZZ+tS8ZlivPVs/s3Xv59IEkD6PbpP3Jk1B1gMACQPwh0b5biNM7js3MENv9aduhgU+p1NgCFfVOdC20iPp6ZIcSj//PylS2xxN29HWYNwxnnH7EccAc/K2Hba6zq8t3i+nKTR/aSd7VT8UMNt7EjS9+WSa2gavJs2JTc/sE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=F/G4l/Ou; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF838C433C7; Tue, 26 Mar 2024 09:30:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711445413; bh=TmO8LZS/iJ3ZXxl/r7qHjzUSiyZSbemk8sv8R3kPSOI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F/G4l/OuQjxv+o/7NKr/07ZmBhUW+OadMjpt2lOVT92fEJ9kRN7F/D5IahchUyBvb MZMvUnOoeKIUaJ09SUgWSsmRiH+S5ZFQI0qjm+nHBHgr8JG4YL00j/m3/nxPyZXken 3Oxdv4daNNmwXFdDHk+0hDkwJi1Rk453JTyj0g4w= Date: Tue, 26 Mar 2024 10:30:10 +0100 From: Greg KH To: Kyle Tso Cc: linux@roeck-us.net, heikki.krogerus@linux.intel.com, badhri@google.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v1] usb: typec: tcpm: Correct the PDO counting in pd_set Message-ID: <2024032624-drizzle-coaster-c97f@gregkh> References: <20240319074337.3307292-1-kyletso@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240319074337.3307292-1-kyletso@google.com> On Tue, Mar 19, 2024 at 03:43:37PM +0800, Kyle Tso wrote: > The index in the loop has already been added one and is equal to the > number of PDOs to be updated when leaving the loop. That says what is happening but not the issue that is being addressed. What is the problem with the number being off by one? Is this a "crash the system" or merely "our accounting is wrong"? thank, greg k-h