can: gw: use kmem_cache_free() instead of kfree()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 9 Apr 2013 06:16:04 +0000 (14:16 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 9 Apr 2013 07:58:44 +0000 (09:58 +0200)
commit3480a2125923e4b7a56d79efc76743089bf273fc
tree6d2e241d497ef497aa637f8ee4a4b218c4161512
parentc802d759623acbd6e1ee9fbdabae89159a513913
can: gw: use kmem_cache_free() instead of kfree()

Memory allocated by kmem_cache_alloc() should be freed using
kmem_cache_free(), not kfree().

Cc: linux-stable <stable@vger.kernel.org> # >= v3.2
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
net/can/gw.c