can: cc770: Fix use after free in cc770_tx_interrupt()
authorAndri Yngvason <andri.yngvason@marel.com>
Thu, 15 Mar 2018 18:23:17 +0000 (18:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Mar 2018 16:39:24 +0000 (18:39 +0200)
commit101a72edd98d2f87d112f21f81f796f584f1bd58
tree952d20b2101613e26e13f2343109c707ffd8d6f1
parent5fdbcc3d6db6f17ec43ef200353208a3a9cf7234
can: cc770: Fix use after free in cc770_tx_interrupt()

commit 9ffd7503944ec7c0ef41c3245d1306c221aef2be upstream.

This fixes use after free introduced by the last cc770 patch.

Signed-off-by: Andri Yngvason <andri.yngvason@marel.com>
Fixes: 746201235b3f ("can: cc770: Fix queue stall & dropped RTR reply")
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/cc770/cc770.c