Received: by 2002:ab2:7444:0:b0:1ef:eae8:a797 with SMTP id f4csp42292lqn; Fri, 15 Mar 2024 12:11:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUC3jtjQLYlsx0uZg8rv3UY9pymKdgwLQCZoMAGDKMBwtd0nE5nZtIJEheuL4HaD7aa0NDMB3bMliSZopkJ5rTR89VFmouAkzVslc1lXA== X-Google-Smtp-Source: AGHT+IHnRIQJfAmjt6Fcy5bZ1EpKU8ve8EfAQqU39XatL4rBkCEJArV/4q1FbbidziMgT1otf7E3 X-Received: by 2002:a9d:7d99:0:b0:6e6:6d42:c61 with SMTP id j25-20020a9d7d99000000b006e66d420c61mr5819982otn.16.1710529877773; Fri, 15 Mar 2024 12:11:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710529877; cv=pass; d=google.com; s=arc-20160816; b=K9lVpocacCcYymJELP1wvQdd2mVv1GALxomm2YJhIp73GuYq4it2rM+PW30IUqdq6Y /DinMJcfOGOqGJyQI0Q7IfygtpAaW+cF6/XSqlgjGjmvnL+9iJXbkkEsORk2Ku333rby 8UKtfDet/yJTbtp/dvs1ji3TOt2ie4eyfP3gowQKXpPLqlsDKc400FHK+/XKp6m0ugeL rwi+e3D30WxIFlzjuPWIt9ZvF8+gKTnGeTtokV3nY/5pNFcoo1j4Y9SIPdujg+sxl6v1 PoA36g75n4ieYV3hA9XqwptxGNOJ+FeIfNpYEOOf2iieEZD+1JprDX2A9ARAPotIyIXs /pzA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=dPanHnMFpq2Z5iDVUCJwTtwisHGgo6EJlidbWFptAOc=; fh=BQIJUjh2C5aMXrd4CLCJZbihQ6mbv1SvJvbVLwhUdxc=; b=G2vOn+ysyFYvNTiIQ9lN4368D1EYyy53Y1fIsj81QN+VjE3BmTuPn7ZyLxuSUpdswc iLcmh6EhcIfDXLaJmDVxtgD1RHhtXStVu71uM30Xndgd747UYKBvEC3tCi9cgrwC+Ubj wAN9JPxgUIauIB1341offIYgZ2jnn+KWWBZkBcyE6jP6zM8pb+pcUuue2Q/wYIcxga2u JmVVHM/1qV9IyxScxkYpLccOJre3YoUDYsuNRe+I59vrWY875lR9efKJvDB9fxwRM0yj CJ4eOmYGKmCZdSiA9ofE036CWFO/PdZXX2IWoX4pedYJPNt7uOAZHAb1unq+x3EzazAZ qewg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=R1JqKkC4; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-104580-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104580-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h1-20020a05620a244100b00788637a3f35si4688762qkn.707.2024.03.15.12.11.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 12:11:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104580-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=R1JqKkC4; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-104580-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104580-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 122521C2148E for ; Fri, 15 Mar 2024 15:34:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9715A3F9E0; Fri, 15 Mar 2024 15:34:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="R1JqKkC4" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (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 E3DEB1946C; Fri, 15 Mar 2024 15:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710516876; cv=none; b=eRKt3lV+07R/sZzbz+qO0qtwAEoIYRNXp6uqogoiDZ3tomxc/iVX2ok71Hho9tP6g7ZuprVWbTnqhcpuNUcEIqUgzwVRRA3QxcoxIT0ksNFJ/EPcusvb0iXoJTFwtJFvQG3EQgrs7PTfNMRw98gFOIbA+xNxAOf8xMxs5HIDPMA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710516876; c=relaxed/simple; bh=kloGycDSopUOMJZAJlHEKTFM7/I+pN2yYqHLiFNx4vc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=glW19IG2JUK8SfNnO0VX2mrdIh3Dnt/NGNj2VTDYR/aDW1n05lwO17wQwx9L/wHp+kJb+lvSFZeQSfnRToQqHAv8WgS+bxuwmPjuw02ZCwyLqK/CqQSxlXjxaBgB6vrGpWqMlbv5yHukns3Ep42//WmuxAO3dueDg4pPjoXstYs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=R1JqKkC4; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710516875; x=1742052875; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=kloGycDSopUOMJZAJlHEKTFM7/I+pN2yYqHLiFNx4vc=; b=R1JqKkC43ZhZpRsbnQIKz4Xp0CPsLEnY+BFEFIUs77vfzBIuUUIjWcFf ixmH2RjVv0T+5rPkX1AhmrH7FwkeMpoyThTfIoyd1LLJYwpgkEPY2xFe3 fCkNi4vIZVHJd3u4ATD2/qe/1WXy1/V0+lgWCqW/SWKnL3UGIA3hoV8LF /xIRX2Ovj2wwZutJWUfLv6PeOGle1czcaXc6V86xRMtqURxk65/PmQlbU Urd5K5OJZv8gHZNcXHGqnfpQtua/u3kqhCTTKAMLP57QfWSbqEsqadGIK F619K5WNhaFoCI9syEiQkK8dAXxYDQqBMNxQvi9iR0VEEQENMYJjzh8Q2 A==; X-IronPort-AV: E=McAfee;i="6600,9927,11014"; a="5257549" X-IronPort-AV: E=Sophos;i="6.07,128,1708416000"; d="scan'208";a="5257549" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2024 08:34:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11014"; a="937057705" X-IronPort-AV: E=Sophos;i="6.07,128,1708416000"; d="scan'208";a="937057705" Received: from mattu-haswell.fi.intel.com (HELO [10.237.72.199]) ([10.237.72.199]) by fmsmga001.fm.intel.com with ESMTP; 15 Mar 2024 08:34:32 -0700 Message-ID: <2a3ab595-80b2-fd4a-8748-c823fa5ec098@linux.intel.com> Date: Fri, 15 Mar 2024 17:36:16 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.13.0 Subject: Re: [PATCH] usb: usb-acpi: fix uninitialized variable in usb_acpi_get_connect_type() Content-Language: en-US To: Dan Carpenter Cc: Greg Kroah-Hartman , Andy Shevchenko , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org References: From: Mathias Nyman In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 15.3.2024 17.21, Dan Carpenter wrote: > The "pld" pointer is uninitialized if acpi_get_physical_device_location() > fails. Initialize it to NULL. > > Fixes: f3ac348e6e04 ("usb: usb-acpi: Set port connect type of not connectable ports correctly") > Signed-off-by: Dan Carpenter > --- I sent a similar patch a week ago, just before merge window opened. looks like it didn't make it. https://lore.kernel.org/linux-usb/20240308113425.1144689-1-mathias.nyman@linux.intel.com/ Thanks Mathias