commit | 7afc0ee6ae73c23d8acc7a58113e269f6c1da2a2 | [log] [tgz] |
---|---|---|
author | Marc Kleine-Budde <mkl@pengutronix.de> | Thu Mar 02 12:03:40 2017 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun Mar 12 06:41:48 2017 +0100 |
tree | cc916ed1afcde1bdf35ca18e1e1170e81d254a4a | |
parent | cec7abd27e878e3c83dc9af41ee87a2e9d483ac0 [diff] |
can: usb_8dev: Fix memory leak of priv->cmd_msg_buffer commit 7c42631376306fb3f34d51fda546b50a9b6dd6ec upstream. The priv->cmd_msg_buffer is allocated in the probe function, but never kfree()ed. This patch converts the kzalloc() to resource-managed kzalloc. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>