Message ID | 20191108174913.368339213@linuxfoundation.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp3146218ilf; Fri, 8 Nov 2019 11:11:36 -0800 (PST) X-Google-Smtp-Source: APXvYqwzegZEPONv3QdJD6Rkh7ggQZJ0hXX1alLgXJk/ThqcJpma4t+KhWRxV+WQ7e77/YvZpwIQ X-Received: by 2002:a50:cb86:: with SMTP id k6mr12396216edi.270.1573240296265; Fri, 08 Nov 2019 11:11:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573240296; cv=none; d=google.com; s=arc-20160816; b=P8vrWdbmBOw8LqubGyRNNgmbLFMy6Tmqd50LhNyqxxb3ZwA3IdY1W/rqAjzuxHylqM 1eZB1LuKtc2bmFG/BKWdMECfduJICoAXTFUET7ZBxJetJKE4jfrUiEFg3AMs8rWkTxhp Cq5BSi5/jHU2DjRG9WiiXE3roOlbAZ3U7UZ05VngVTCEsQ6c6rvepFGxYYq9/xS2q73T d/XIF/hHbJBlnJhYsniOrvE30Z33ASJrXDalg6w00WiDELKgrvZTWnsvfGAJw15pG1x7 6dyOFOLIKPLKcVN5YONds2QupKwaUhvx7UUP0pWqNcT1smu102qu3sEePU2OljJFQ5aX 0kQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QaQjKNP+BSEAuqV2uII7VzqDMWABKwtP6HkjwQpc1OY=; b=vOI96aM5pX66dQ83y2DmkKxESUKcc09zLm/9XGquXovHx+t5IkWQh898EDUuDoEkbr Ebg9pLKQYFsJofjJZ3GRL7lZwUXRPQ6SWxDLO9vKPHtDsDN1HLqRVxuq5tuP73LFlEtu 1ce0alpY+zgUyWpqbHGtZi+t+HnZo6IYA9AJi/0yj62XkbP5Qh2F65QZLYogrKw6y2ZO 4NeQ16N5mtBYnq/G1/BAm6h2LByWkFv5hSHq2pduSvbqxeuVjmW+JPy/Vsu06PPfh4dP wicuYXsxCA3m0gzmT2VY1JWcxYJ6zC5ArptspVYMoSUYmVqwpgvivr1Rb03wOosNWDWV rexA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JCk2bWvp; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bi3si5196621edb.331.2019.11.08.11.11.35; Fri, 08 Nov 2019 11:11:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JCk2bWvp; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391936AbfKHTKw (ORCPT <rfc822;lee.jones@linaro.org> + 14 others); Fri, 8 Nov 2019 14:10:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:43182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391934AbfKHTKv (ORCPT <rfc822;stable@vger.kernel.org>); Fri, 8 Nov 2019 14:10:51 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A8CDA222C9; Fri, 8 Nov 2019 19:10:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573240250; bh=49HBYkfwhhhr3Yi35zOi9YBhBh7UK9S4nHQX2zOGc2c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JCk2bWvprto/3kWfbwGljX0kMttluykoL49f0pxSm6S0CWIiL9adqgLTaRx/Mjzlq Q/0kl+ap5FzSjGOjweUnlgOzN7dZcV6wSr7XnVGsZx2MGzbulw2RdQ37t9wQ4mhdtK 2LrwA4NzT2OgmYVJoSXSuoFo+K1On8rnMz3W4iwk= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Alan Stern <stern@rowland.harvard.edu>, Roger Quadros <rogerq@ti.com>, Felipe Balbi <felipe.balbi@linux.intel.com>, Mathieu Poirier <mathieu.poirier@linaro.org> Subject: [PATCH 5.3 140/140] usb: gadget: udc: core: Fix segfault if udc_bind_to_driver() for pending driver fails Date: Fri, 8 Nov 2019 19:51:08 +0100 Message-Id: <20191108174913.368339213@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191108174900.189064908@linuxfoundation.org> References: <20191108174900.189064908@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/usb/gadget/udc/core.c +++ b/drivers/usb/gadget/udc/core.c @@ -1154,7 +1154,7 @@ static int check_pending_gadget_drivers( dev_name(&udc->dev)) == 0) { ret = udc_bind_to_driver(udc, driver); if (ret != -EPROBE_DEFER) - list_del(&driver->pending); + list_del_init(&driver->pending); break; }