Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp376163lqo; Fri, 10 May 2024 02:36:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbGu454g565c3MNtGtrOWgE5YaUerb6k/qTsnQqPhZ2Q0I1OdazvbCsozwoRPt2iV0rnDvCnOXhRxIOu841Wvhf/6qRSS5h59Yo69qxQ== X-Google-Smtp-Source: AGHT+IEfWGRTv380MAYaJp8z+7ExT3O4V6ZOgozmib+oVlYwWRIY6SGMYEYmLY7DcsExs+Q0Cu15 X-Received: by 2002:a17:902:d490:b0:1e7:d482:9e09 with SMTP id d9443c01a7336-1ef43d0a022mr25329005ad.7.1715333802394; Fri, 10 May 2024 02:36:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715333802; cv=pass; d=google.com; s=arc-20160816; b=fInarMfpCgA/CKMn93pnpj0UV9Ksptk9yT507LsWhKNRO1ZjyFASVy2cp07JvJF8Af 6xFTFpI8moo+cyDXrWhhC1bpUeJczFccyFhi1X/egeg2s0dr+ANRmITU8LvG7yMr0bMq AIBRWe2I0viwI6t53mtbW2+BP4F5DfBZuxQvsBSsKLPg9FH4omDiEP+b+rsjUh6+gkHA Hl0ceCMIaQeHrEJ82KZfPLDXhwERlwu8iJ5g49W3qOegZg6BeYShv+DoOmtD+GZLN81T Gc8l1RGatXcM3ycr2CWysXK4Uv8eIcmzoyv34d26ptnB91aN9lrWAkJNWvayr1knGLq2 wUXg== 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=kWuqq4vdw01XguKOs7yiSuLB2LpkS7ZyIUJwsQVExxY=; fh=YFcpWP7JkRvsBjPZH6ZQnlPsBDhCpWmGbhS54Rbohjk=; b=BMMXUzVBhhcDysuORNyzlKhrZilCUGAJuyOgclPecPwtHH3rw9hRDde57eMnFkfGb4 +IUMd2ruOAdG90FfRgXDbRfl8/tpOQtyekR3EbzeaZngVYPU+azCo4hA4weNVG0LvCQT c85AznHfvVcGamRfy74WtPDtKLuLNkOW40IrzBHWlcGsVvA2f7snkg+y08XDswohyPQH nEyxp8WSBQ3YvyBgv5CY/Q8F2sDvADeHwMJ3O/b2nbDasdSSkKyYJg75WCVmUYP9NZ50 HbRrSS8+3HKilCs962AF5McuaiYGxSDQ725ofQQgWcLW3f+z1RswsVcdvM7icIHV80lb j+iA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jQIrxaMv; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-175539-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175539-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0bf32be8si33950295ad.269.2024.05.10.02.36.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 02:36:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175539-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jQIrxaMv; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-175539-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175539-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 663D1B20E98 for ; Fri, 10 May 2024 09:36:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9685A165FA3; Fri, 10 May 2024 09:35:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jQIrxaMv" 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 B60CC161337; Fri, 10 May 2024 09:35:51 +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=1715333751; cv=none; b=hRxmw+Q7/6E3YKArpxBkmnkO4CUt4HjBhMvATtUoGt98l/bv849uiQmpidc6/k4vg5l05KDafnaCfQ2bKpmdlJ27i/rYhJcJtoYmakNuecvE4gjnbHCxt/4SCxCiF0+DFeuYj9SD2Z0ChZ4RkhDtSB+EdsG4XLjiTMq0pRjk4XU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715333751; c=relaxed/simple; bh=L+6AgakNTXIcMOAJNNHC8vZGom0I8qf1DFO1PdW1RqY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ud/odVuIrOLgUVF80sHK6TvwdoT4gyHGYUVNo7ckaYIyFlhTatpov8iBmeaED/WrPjF/2g1+FsdgQaXiJPpDtkqeCmn514Tcjqt/aYvM2RQoT/hVq82fccAcuzuYmGTZayONvwEFhGSLDWYk/DVyfTCAoZIfmjVYjQyyxml+FkE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jQIrxaMv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47028C113CC; Fri, 10 May 2024 09:35:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715333751; bh=L+6AgakNTXIcMOAJNNHC8vZGom0I8qf1DFO1PdW1RqY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jQIrxaMvMNcE0mSk6GpsIZ4aLjAtwbO52oQwGpRc3PfWva83FZbLpEM/etkFQaHv+ 9ZLYOpWvq8ryVathOVjUmMNQg8MyxUz93yDc5NmHdibWqrdecT7v82cBDpiC38H3vw gwoxH/azf4xsPMFsZVQ8blDxdT8SXARG3h+olSg4= Date: Fri, 10 May 2024 10:35:28 +0100 From: Greg KH To: Heikki Krogerus Cc: Jameson Thies , linux-usb@vger.kernel.org, pmalani@chromium.org, bleung@google.com, abhishekpandit@chromium.org, andersson@kernel.org, dmitry.baryshkov@linaro.org, fabrice.gasnier@foss.st.com, hdegoede@redhat.com, neil.armstrong@linaro.org, rajaram.regupathy@intel.com, saranya.gopal@intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/4] usb: typec: ucsi: Fix null pointer dereference in trace Message-ID: <2024051010-hungrily-scholar-7d23@gregkh> References: <20240503003920.1482447-1-jthies@google.com> <20240503003920.1482447-2-jthies@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: On Mon, May 06, 2024 at 01:03:12PM +0300, Heikki Krogerus wrote: > On Fri, May 03, 2024 at 12:39:17AM +0000, Jameson Thies wrote: > > From: Abhishek Pandit-Subedi > > > > ucsi_register_altmode checks IS_ERR on returned pointer and treats > > NULL as valid. When CONFIG_TYPEC_DP_ALTMODE is not enabled > > ucsi_register_displayport returns NULL which causese a NULL pointer > > dereference in trace. Rather than return NULL, call > > typec_port_register_altmode to register DisplayPort alternate mode > > as a non-controllable mode when CONFIG_TYPEC_DP_ALTMODE is not enabled. > > > > Reviewed-by: Jameson Thies > > Signed-off-by: Abhishek Pandit-Subedi > > You delivered the patch, so you should have used SoB instead of > Reviewed-by tag: > https://docs.kernel.org/process/submitting-patches.html#when-to-use-acked-by-cc-and-co-developed-by Not "should", that would be "must". I can't take it like this, sorry. greg k-h