From patchwork Thu Feb 14 13:24:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 158390 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1367144jaa; Thu, 14 Feb 2019 05:24:55 -0800 (PST) X-Google-Smtp-Source: AHgI3IZN+Mvl+dJxF/tuu74JeghS+Hr44CcXR2tC9nhxoxQrvSAxakxwGGmoYII8NjncnahpmQVw X-Received: by 2002:a63:fa06:: with SMTP id y6mr3781344pgh.177.1550150695791; Thu, 14 Feb 2019 05:24:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550150695; cv=none; d=google.com; s=arc-20160816; b=ML2o00bBIS+xVyAafZC9G0eXbOmEeix3i4CyLGvAq+oVBGUCv69ZWAtXG22hpXKOtp os6EIpuSNKfs5bexpTphebQkuLQinZ+UJ/OrN6NmcbEoG7cVPBluZ4O/7m6vrzHOTAP6 Iq8HD2DnFyRNABMQlXLqFtz3Yn1rm40ZhT10JJ70yC7hNvoLo+9BA7xuhyaLCgBbryp2 bxknCswp/T3v3e/62JNTJmDmXYICP5ohRaK/Z5L+zJDyvUtE65FYOfai5vKdfVrFEAtP v+eBvsEPxM8mRJwXzqqL5/Nr14H0+dleGvxXwMDmvQbADKoIiV8EXpuGScKM3UDbfrAb 4T8A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ynm6DT16zNvz+93k0pPR5GepakBcCFCSOf6wdHIe7Vo=; b=QPo7/Y4050/OkXRr+8r7s4W/frJVriDpFUM1a2Wi+lX4M5s6CQTjIO3HLFKojAKpyD 3V9rsHvqX/k1D6K8HPSruHKHvPmDwb5ZPuATMsyS9oUy3Rg4hAG2P0lSXNlCH5PuCPcO Ao/HV57WO8fSSfpUIRGfLcnjRjTS9O7CIGQEi4cF+uow3aRyQlfx4OaoXxW4obGVO/Ef 8R5I8LsYOVdpTe+KjHymV+Sbk9Suy9JG4xdB+ktjFPQ4ceOIJee7j7/9xmPnnPV55HMi F5gcMo0f293pK2x65IiIqSVy3Cviiyw1Lq6eU8xVyFJme67fB8lz0q+QLI9RU9PcM3EV eNFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sy3LOYsG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 36si2748782plc.250.2019.02.14.05.24.55; Thu, 14 Feb 2019 05:24:55 -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=@linaro.org header.s=google header.b=sy3LOYsG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394750AbfBNNYz (ORCPT + 15 others); Thu, 14 Feb 2019 08:24:55 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:43435 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391121AbfBNNYy (ORCPT ); Thu, 14 Feb 2019 08:24:54 -0500 Received: by mail-lj1-f193.google.com with SMTP id z20so4198495ljj.10 for ; Thu, 14 Feb 2019 05:24:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ynm6DT16zNvz+93k0pPR5GepakBcCFCSOf6wdHIe7Vo=; b=sy3LOYsG1nChdUfsgYnpLamnlNyQ5Xs1HRAl8XG1pjmMlYAOgP8WtlOdgNVRLX6QWh Bi/P9fsYqdeMnYfJhk+x2utx7fGfPOQwUasv95Wo3xPu95Aq8ZzPctG52QSk8IZHzLpd QfpYq7CJRA9b989TmeaiS6k/nlYXvfeYLFRY4iuHsIFDcGf3NK66wHoLW3ACEIcNo+GU +3G0+wFjNkCARrS46F/6wYBC+Au3Q9GdYzjF/lcqaE3FYr5r1JN07Y8wY+gBnDyUQOAm vQyMNo4EykNmkrJOE2IVcWShMeNiNkNAzvX4Q5YRK/9l4qIWXhjXOYdnGyYeFZ2KT49n nwhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ynm6DT16zNvz+93k0pPR5GepakBcCFCSOf6wdHIe7Vo=; b=d3JYEL5uVYVxKqv69+L2Xen3OO4Cwl1jnCugyBXFckAuBm3nssAFzCPLdeZT4JPvIz 6VU7NCOxc5DYobsdyTiXmIgm9EvVZ3Zxtec/C4rHdtnbqrDX85podby7mA5pmfUUSZo6 24WAYrjj9yye7fAYzUTdHQW0gDXOrYnJaM675knRwo+azslWvJlFSwkunikMTxoJ6/Gp +Y9g7szVlXSaNLM+MPPoc0ktCaLa3MVOEDMw8sefOpZbT9aGvRD4g64Yu9eVduLnfGJH u6gdLS8dJruRAv0jkwEFY/cq7UIS5Vbfr0iXAAcD4gkhUJfoNQOcOj6TugjtP03cTk5c ngvA== X-Gm-Message-State: AHQUAuawKLlgk5GMXD2GrG5c7CMu3ykpHh0ZCDoN5fbdExIeBesAy9TZ JZ8uRp7qmiYo0ZiyTVwPLLfbSQ== X-Received: by 2002:a2e:8e8e:: with SMTP id z14-v6mr2438929ljk.84.1550150692862; Thu, 14 Feb 2019 05:24:52 -0800 (PST) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id k13-v6sm427752ljg.84.2019.02.14.05.24.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Feb 2019 05:24:51 -0800 (PST) From: Linus Walleij To: Greg Kroah-Hartman , stable@vger.kernel.org, openwrt-devel@lists.openwrt.org Cc: "David S . Miller" , Eric Dumazet , Liping Zhang , John Youn , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , James Hughes , Felix Fietkau , Felipe Balbi , Linus Walleij Subject: [PATCH 7/8 v3] usb: dwc2: Remove unnecessary kfree Date: Thu, 14 Feb 2019 14:24:02 +0100 Message-Id: <20190214132403.10687-8-linus.walleij@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190214132403.10687-1-linus.walleij@linaro.org> References: <20190214132403.10687-1-linus.walleij@linaro.org> MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: John Youn commit cd4b1e34655d46950c065d9284b596cd8d7b28cd upstream. This shouldn't be freed by the HCD as it is owned by the core and allocated with devm_kzalloc. Signed-off-by: John Youn Signed-off-by: Felipe Balbi Signed-off-by: Linus Walleij --- - This was applied upstream in v4.10 - Should be applied to stable v4.9.y --- drivers/usb/dwc2/hcd.c | 1 - 1 file changed, 1 deletion(-) -- 2.20.1 diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index 984d6aae7529..0e5435330c07 100644 --- a/drivers/usb/dwc2/hcd.c +++ b/drivers/usb/dwc2/hcd.c @@ -5202,7 +5202,6 @@ int dwc2_hcd_init(struct dwc2_hsotg *hsotg, int irq) error2: usb_put_hcd(hcd); error1: - kfree(hsotg->core_params); #ifdef CONFIG_USB_DWC2_TRACK_MISSED_SOFS kfree(hsotg->last_frame_num_array);