Skip to content
Commit 7c426313 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde
Browse files

can: usb_8dev: Fix memory leak of priv->cmd_msg_buffer



The priv->cmd_msg_buffer is allocated in the probe function, but never
kfree()ed. This patch converts the kzalloc() to resource-managed
kzalloc.

Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 540a27ae
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment