Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63F2EC43381 for ; Thu, 28 Mar 2019 11:32:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3C2D82183F for ; Thu, 28 Mar 2019 11:32:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727145AbfC1LcV (ORCPT ); Thu, 28 Mar 2019 07:32:21 -0400 Received: from mga01.intel.com ([192.55.52.88]:14031 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726956AbfC1LcV (ORCPT ); Thu, 28 Mar 2019 07:32:21 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Mar 2019 04:32:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,280,1549958400"; d="scan'208";a="159192086" Received: from kuha.fi.intel.com ([10.237.72.189]) by fmsmga001.fm.intel.com with SMTP; 28 Mar 2019 04:32:18 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Thu, 28 Mar 2019 13:32:17 +0200 Date: Thu, 28 Mar 2019 13:32:17 +0200 From: Heikki Krogerus To: Greg KH Cc: anil.kumar.k@intel.com, brian.j.wood@intel.com, stable@vger.kernel.org Subject: Re: [PATCH v3] usb: typec: fix bug in typec_register_port call Message-ID: <20190328113217.GA9993@kuha.fi.intel.com> References: <1552689801-16754-1-git-send-email-anil.kumar.k@intel.com> <20190319090310.GQ7752@kuha.fi.intel.com> <20190326044640.GA20887@kroah.com> <20190326082621.GA7049@kuha.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190326082621.GA7049@kuha.fi.intel.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Tue, Mar 26, 2019 at 10:26:21AM +0200, Heikki Krogerus wrote: > On Tue, Mar 26, 2019 at 01:46:40PM +0900, Greg KH wrote: > > On Tue, Mar 19, 2019 at 11:03:10AM +0200, Heikki Krogerus wrote: > > > On Fri, Mar 15, 2019 at 03:43:21PM -0700, anil.kumar.k@intel.com wrote: > > > > From: Anil Kumar > > > > > > > > typec_register_port function used variable port->id without > > > > initializing it. This patch fixes the issue by using the local > > > > instance for the error case > > > > > > > > Issue is not observed in the mainline tree (5.x) > > > > Why is this not observed there? What patch fixed this? Why can we not > > backport that fix? > > Commit 23481121c81d (accidentally) fixes the problem, but you can't > backport that alone. You would need at least the following five > patches with it (23481121c81d is the second last): > > 148b0aa78e4e ("platform: x86: intel_cht_int33fe: Remove the old connections for the muxes") > 23481121c81d ("usb: typec: class: Don't use port parent for getting mux handles") > 495965a1002a ("platform: x86: intel_cht_int33fe: Add connections for the USB Type-C port") > 78d2b54b134e ("platform: x86: intel_cht_int33fe: Add connection for the DP alt mode") > 140a4ec4addd ("platform: x86: intel_cht_int33fe: Register all connections at once") > cd7753d37138 ("drivers: base: Helpers for adding device connection descriptions") I've now tested these on top of v4.19.x, and I'm confident that these are all the prerequisites that are needed. I'll send the original patch to stable@vger.kernel.org ml. thanks, -- heikki