From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:38464 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753114AbdFRBK0 (ORCPT ); Sat, 17 Jun 2017 21:10:26 -0400 Subject: Patch "can: gs_usb: fix memory leak in gs_cmd_reset()" has been added to the 4.4-stable tree To: mkl@pengutronix.de, gregkh@linuxfoundation.org, max@schneidersoft.net Cc: , From: Date: Sun, 18 Jun 2017 09:09:05 +0800 Message-ID: <1497748145245144@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled can: gs_usb: fix memory leak in gs_cmd_reset() to the 4.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: can-gs_usb-fix-memory-leak-in-gs_cmd_reset.patch and it can be found in the queue-4.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From 5cda3ee5138e91ac369ed9d0b55eab0dab077686 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Sun, 4 Jun 2017 14:03:42 +0200 Subject: can: gs_usb: fix memory leak in gs_cmd_reset() From: Marc Kleine-Budde commit 5cda3ee5138e91ac369ed9d0b55eab0dab077686 upstream. This patch adds the missing kfree() in gs_cmd_reset() to free the memory that is not used anymore after usb_control_msg(). Cc: Maximilian Schneider Signed-off-by: Marc Kleine-Budde Signed-off-by: Greg Kroah-Hartman --- drivers/net/can/usb/gs_usb.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/net/can/usb/gs_usb.c +++ b/drivers/net/can/usb/gs_usb.c @@ -246,6 +246,8 @@ static int gs_cmd_reset(struct gs_usb *g sizeof(*dm), 1000); + kfree(dm); + return rc; } Patches currently in stable-queue which might be from mkl@pengutronix.de are queue-4.4/can-gs_usb-fix-memory-leak-in-gs_cmd_reset.patch