Message ID | 20191108174829.668154458@linuxfoundation.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp3136569ilf; Fri, 8 Nov 2019 11:04:28 -0800 (PST) X-Google-Smtp-Source: APXvYqyNXwlnUHS0iy8bRo8JE2BOx4P9Rc/E6n5ugZBttmI4TEvW1bRYXc/qHzDFPFzBIsGdvm3x X-Received: by 2002:a1c:40c1:: with SMTP id n184mr10218119wma.116.1573239868787; Fri, 08 Nov 2019 11:04:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573239868; cv=none; d=google.com; s=arc-20160816; b=TNRLlXDEsqkICnJBkKNBwST0zJJZWnG+S/tMvdAgxzj/s8mRxKvpmnKSDIZUBEzGqK 8U6oulPOirr5WKS8ZCU476vTvTXd0WNBYyIpgHPYwkTbZdc5KdSo1kdTJ4Hp9ZqrnLWd 1AW/GuhjZ6g26LX9aR8CYtzk8aowLhagCJNicvmoxjN5Ng84e7Wfxbj8fLXZDQTzLecK WoDca53pHh9X/a2+36opJBx+JN3dPfPEeX7R5G7znz5Gfcyl8bfkJBUQYSAzr7z7a2/I IN00QdNZrd3bCaFiBzs2VWRiyE0eMPquw5ym8C++DuVDN59y4okSvM+ZXf5/WjyZ5i2Z KzBA== 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=SGMyleZ8E58got52lPbFMD66bBffk/BBMqwgaGLsSmo=; b=XVXw9Uofi5mTzFJdT1CwO8uDc4j2GdguLYc2YiPY4+m6lq06K4n7sRjmXe4bE33cS2 zHoYO3havQtirCEJWd7pJVa8g2joNVzUoLPKmm9HWTwDtcbQf7PDfYPV0+vwJNoavzfe JKbcXr1iMkUhzbx74Hl4bhOYUuCTHASakDYmBVNVL9qew9r4sZzZAOWQPCrVTfQ+LKeD AEHxjVrODIoeHNervHfoVy6rDqL4XvpSAgsBmyf9WWOzMR3RaNEejPKZlfpGxdPc9MPd 71JBthXBX8GK4BRLHjVPmf6wE/NNmDbu6BBdap35U28nVtygH/XIxHeGbwBAU2hZUlBs RIMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1L2sbc+6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p21si4878964edc.305.2019.11.08.11.04.28; Fri, 08 Nov 2019 11:04:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=1L2sbc+6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390992AbfKHTE1 (ORCPT <rfc822;lee.jones@linaro.org> + 26 others); Fri, 8 Nov 2019 14:04:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:34220 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388466AbfKHTEY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 8 Nov 2019 14:04:24 -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 D4B11214DB; Fri, 8 Nov 2019 19:04:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573239860; bh=v6nFBkWHje+2l2y3JQvhgZHFjpuNz+PM0WRCuLYQOo0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1L2sbc+6YtL8GzPTy7d0+D9oybGGy3JjEhaggZVYZcpr0fuEZyAuT6P6lCiEfr7ME DzHqzXhfrU/qzMhx8Ahsqm3gsQdOLa3zdeqivSepeWNGvTgb6QBux8ku2V9am6qfoW ncEHxCHLw/2t04yD/ol/ne5txCdlIJQ18PH8BYHs= 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 4.19 79/79] usb: gadget: udc: core: Fix segfault if udc_bind_to_driver() for pending driver fails Date: Fri, 8 Nov 2019 19:50:59 +0100 Message-Id: <20191108174829.668154458@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191108174745.495640141@linuxfoundation.org> References: <20191108174745.495640141@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/usb/gadget/udc/core.c +++ b/drivers/usb/gadget/udc/core.c @@ -1149,7 +1149,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; }