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 57506C43381 for ; Tue, 26 Mar 2019 08:26:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 25A9420830 for ; Tue, 26 Mar 2019 08:26:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726645AbfCZI0Z (ORCPT ); Tue, 26 Mar 2019 04:26:25 -0400 Received: from mga18.intel.com ([134.134.136.126]:61653 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726042AbfCZI0Z (ORCPT ); Tue, 26 Mar 2019 04:26:25 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Mar 2019 01:26:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,271,1549958400"; d="scan'208";a="158448630" Received: from kuha.fi.intel.com ([10.237.72.189]) by fmsmga001.fm.intel.com with SMTP; 26 Mar 2019 01:26:22 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Tue, 26 Mar 2019 10:26:21 +0200 Date: Tue, 26 Mar 2019 10:26:21 +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: <20190326082621.GA7049@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190326044640.GA20887@kroah.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 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") thanks, -- heikki