* Patch "can: gs_usb: fix memory leak in gs_cmd_reset()" has been added to the 3.18-stable tree
@ 2017-06-18 1:08 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-06-18 1:08 UTC (permalink / raw)
To: mkl, gregkh, max; +Cc: stable, stable-commits
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 3.18-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-3.18 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>From 5cda3ee5138e91ac369ed9d0b55eab0dab077686 Mon Sep 17 00:00:00 2001
From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: Sun, 4 Jun 2017 14:03:42 +0200
Subject: can: gs_usb: fix memory leak in gs_cmd_reset()
From: Marc Kleine-Budde <mkl@pengutronix.de>
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 <max@schneidersoft.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
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-3.18/can-gs_usb-fix-memory-leak-in-gs_cmd_reset.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-18 1:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-18 1:08 Patch "can: gs_usb: fix memory leak in gs_cmd_reset()" has been added to the 3.18-stable tree gregkh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).