From patchwork Thu Feb 14 10:24:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 158338 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1172860jaa; Thu, 14 Feb 2019 02:25:37 -0800 (PST) X-Google-Smtp-Source: AHgI3IbheEhliyiA6tVXuMoZ+FFlm3yc65A831LRyaqP3yQQM5X17xNOMYT4bQipyjgs3f3RNxao X-Received: by 2002:a63:2643:: with SMTP id m64mr2967717pgm.35.1550139937269; Thu, 14 Feb 2019 02:25:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550139937; cv=none; d=google.com; s=arc-20160816; b=vfBN9yl6L1cGODXXPRkLKtQG/UFgsuhOQzfZGrEeRhyJQFUbt0M0mwU+D5WdBiTHhx gjmY0PffY9caUSUv3OGhmKcqOhYcogRqTluvCrDuygxyiNEJVLzui/LGHA6RJj5waGHT 62iYbeKVjLyOvej20Av3yZdiLto4/W8j0kSrf76BT9y4u0WQA/a1J63jPBe2JzFQ1QbF x+G/Sn4tfLj06L8YWE3uAQXPcWjQG2fd7s23qypNZfup7qv7xeOO34DKbv39VXbmvZtB OaEQba19+mAlGrPRA1pF51d8bQ3mPP52JLHAb1+qsR8YnZxn4f4tgbJMS/vKZIcHsPo1 mALQ== 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=V5q0Psd+QeYz0B88fp1aY4uWkwQGd1Gv62HcBCKMYdc=; b=ppn1PTP3sBrq2J+ynWBRD5JsNToszmtqFxSJmE8LV4i3GpwaysVFEihvacOXChipHy o2NczKfPqQuWmA9FzNK8rPd6gtMoOo9gst4RL7ibOevo6Bc/ai847FvYYJTXrrF74b3R e0Y6v+Y1GVtSZ8I955ogZUkflnP+ycjwyU7RMsvk2w3RdiVe8H7VTHbQLx0sshWnmi9h PAMyFi5cXioRg4HHHUz5ZsqKvQSFjev68qjHEBuMBconN9rRzudRiuLVC12YKisoeEHM /+PibL+I14nwBN5ZNYFM0kbiqwtTxRxG2VfAFrW4TVGyZ9Jk//OY/0wG0BLhK4+f6U+h ig2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NTLfIfKL; 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 3si2132062plv.258.2019.02.14.02.25.37; Thu, 14 Feb 2019 02:25:37 -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=NTLfIfKL; 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 S2390933AbfBNKZc (ORCPT + 15 others); Thu, 14 Feb 2019 05:25:32 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:41819 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389001AbfBNKZc (ORCPT ); Thu, 14 Feb 2019 05:25:32 -0500 Received: by mail-lf1-f67.google.com with SMTP id e27so4122831lfj.8 for ; Thu, 14 Feb 2019 02:25:31 -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=V5q0Psd+QeYz0B88fp1aY4uWkwQGd1Gv62HcBCKMYdc=; b=NTLfIfKL8xH5BK32DxhwhLcSjaGLloNmoQV6puSOlQ+HNDC7NBwWFX9o4oNXq5wSBB j2vcAja4QCmmPgrO1bEITqikhzirbUiF57ZhA/nGhZse+1EwhoX2Wth+04YhFS70pwdU pAsPp+s9oZRZ5ze59v/7KaPvwIgj7x0NVhV34R4Ea5Js+8pmyJbv9a0H/MdrAQuiZnUa mJ9XAAXRZFcXw/Aw8gptFQiO76fAS+ldnth9BGFr27TY6viwGpHNn5uDwdevEveu330T 3uWJTSsSFvviwypmGAKbTdznlz3hwD7lVXyDiX4OOKngmURXgddXwqIr3jNmG3nU3DWe ZZXA== 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=V5q0Psd+QeYz0B88fp1aY4uWkwQGd1Gv62HcBCKMYdc=; b=O1HvlV7zV8yqfIB+wEmVfHMmZSMuiOA2Z26YN2ZbGA17MvU9IS4Nr9fLcc6UtrQDK8 DyYlMBbJadWgXPf6yXZguliKD4rCRG+seTZW6oiJZl/3kkRQb8vB8HpxvXcAwVhwW3kO kaKw/qBol0S+w1OQkaS829j2v6pdARWqDiEKARIeDRUJGJ92SXvoZSj0sBTOMZtO2edY k1FHIOmBHU0VMOePhusSh6OzP7t+Lx7BxuuEutZcM+AgwrGIlGXY4zkEdgfNlhbEp+SB PoWmxFz5PQIMiDgSEcZt8lJXZTrFqE1oj1c0sMuxXcvf8MFCbYqEFxrMNJ3dVH+xD6zK F4Sg== X-Gm-Message-State: AHQUAuYr6i9FVye8DHndE4UXhvWfaJpdEMRJTNvc9OFpiJtQ1H8LUQ5q H+CIAWxRGLun0l7tTig7+KNnQw== X-Received: by 2002:a19:4284:: with SMTP id p126mr1899308lfa.139.1550139930166; Thu, 14 Feb 2019 02:25:30 -0800 (PST) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id n189sm380392lfn.82.2019.02.14.02.25.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Feb 2019 02:25:29 -0800 (PST) From: Linus Walleij To: Greg Kroah-Hartman , stable@vger.kernel.org, openwrt-devel@lists.openwrt.org Cc: "David S . Miller" , Eric Dumazet , Hauke Mehrtens , Dave Taht , Liping Zhang , John Youn , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , James Hughes , Felix Fietkau , Felipe Balbi Subject: [PATCH 07/10] usb: dwc2: Remove unnecessary kfree Date: Thu, 14 Feb 2019 11:24:33 +0100 Message-Id: <20190214102436.5092-8-linus.walleij@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190214102436.5092-1-linus.walleij@linaro.org> References: <20190214102436.5092-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 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 --- 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);