From patchwork Wed Apr 5 10:32:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 96830 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp196376qgd; Wed, 5 Apr 2017 03:34:29 -0700 (PDT) X-Received: by 10.99.55.7 with SMTP id e7mr29690451pga.175.1491388469107; Wed, 05 Apr 2017 03:34:29 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l9si20203815pfi.300.2017.04.05.03.34.28; Wed, 05 Apr 2017 03:34:29 -0700 (PDT) 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; 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 S933478AbdDEKe0 (ORCPT + 6 others); Wed, 5 Apr 2017 06:34:26 -0400 Received: from mail-pf0-f180.google.com ([209.85.192.180]:36852 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933481AbdDEKdZ (ORCPT ); Wed, 5 Apr 2017 06:33:25 -0400 Received: by mail-pf0-f180.google.com with SMTP id o126so5587056pfb.3 for ; Wed, 05 Apr 2017 03:33:16 -0700 (PDT) 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; bh=LbXlpECKUS8/0IvUj99Xd1nUAoEFknsi8jtAdkiYLeg=; b=ZsQdw9mi1XPs1nu5tstC0v+wSForHNv7TDxI5q3ge+uaSP7Zwb+cf6lArI1xaPjdP4 2/UZsG/KFqYXNv8cv7+NDnNMFEQqPNkcD7D12WZhdmeauBhSZmIirUYpbwDUpUlFnmss PUTsY3+MXJ9OjkGWTjeVVSDNeCKdBrlyxTUKk= 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; bh=LbXlpECKUS8/0IvUj99Xd1nUAoEFknsi8jtAdkiYLeg=; b=ebVtvPV7flI2VehH14sTLQ2YacLOJ1msHx5LaOR2tgjkNZ1ewh60EcRqvkZkgXAz/3 iRu7Rf+OYGgzlT0tezjrFt5NdftpTt+UZvfLU0tQni54PsvuC+PjPqCobuumfBra8bpw ngzQhM9R5PmvvhLNeihfWOJLYuwZJzEe4JUuMphf3TFUWyF602xwOjd2/3ggwcRD5yd3 wXsKdar2eBoFcW7u8FGWoyOBRJcLKUipZwNS10rF9hBNuty+nmBPWHeJKyeKCLLF9m7/ UPwnVQwb9URRCfkeSBWs4oCa2f5TcivqBgdEdVXhH+cvPfEfYM24jEPqG16Bymag1cnn qu0Q== X-Gm-Message-State: AFeK/H3u47okH3AMNswi9tkS8QxeQ64sm/OW9AOkXsnDO8taifJ/MjZxx0F1jxaOAs3TjVhJ X-Received: by 10.84.248.9 with SMTP id p9mr35217534pll.185.1491388382154; Wed, 05 Apr 2017 03:33:02 -0700 (PDT) Received: from localhost.localdomain ([106.51.240.246]) by smtp.gmail.com with ESMTPSA id a62sm36732075pgc.60.2017.04.05.03.33.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Apr 2017 03:33:01 -0700 (PDT) From: Amit Pundir To: stable@vger.kernel.org Cc: gregkh@linuxfoundation.org, John Youn , Felipe Balbi Subject: [PATCH v2 for-4.9 16/32] usb: dwc2: Remove unnecessary kfree Date: Wed, 5 Apr 2017 16:02:08 +0530 Message-Id: <1491388344-13521-17-git-send-email-amit.pundir@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491388344-13521-1-git-send-email-amit.pundir@linaro.org> References: <1491388344-13521-1-git-send-email-amit.pundir@linaro.org> 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 (cherry picked from commit cd4b1e34655d46950c065d9284b596cd8d7b28cd) Signed-off-by: Amit Pundir --- drivers/usb/dwc2/hcd.c | 1 - 1 file changed, 1 deletion(-) -- 2.7.4 diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index df5a065..1b6f5e1 100644 --- a/drivers/usb/dwc2/hcd.c +++ b/drivers/usb/dwc2/hcd.c @@ -5184,7 +5184,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);