]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
can: flexcan: fix use after free of priv
authorMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 21 Oct 2010 05:07:58 +0000 (05:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Oct 2010 17:48:58 +0000 (10:48 -0700)
commit9a27586d3d5c3157260b055d057c6f4f6654c72c
tree27ac8230bde3a11881795acedc7b4c44671a8fbe
parent06d6e6d2e4ef61172f342fddeea5cfa465d81578
can: flexcan: fix use after free of priv

The priv is part of the memory allocated by alloc_candev().
This patch moved the free it after last usage of priv.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/flexcan.c