summaryrefslogtreecommitdiff
path: root/drivers/dax
diff options
context:
space:
mode:
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>2021-01-20 20:41:37 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-27 11:47:48 +0100
commitddd1416f44130377798c1430b76503513b7497c2 (patch)
tree5a9181b539d1dff7b24c4b7f59ef672cffb84afc /drivers/dax
parenta24476b37167816e6352ca1a2cf3769847774f70 (diff)
can: peak_usb: fix use after free bugs
[ Upstream commit 50aca891d7a554db0901b245167cd653d73aaa71 ] After calling peak_usb_netif_rx_ni(skb), dereferencing skb is unsafe. Especially, the can_frame cf which aliases skb memory is accessed after the peak_usb_netif_rx_ni(). Reordering the lines solves the issue. Fixes: 0a25e1f4f185 ("can: peak_usb: add support for PEAK new CANFD USB adapters") Link: https://lore.kernel.org/r/20210120114137.200019-4-mailhol.vincent@wanadoo.fr Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/dax')
0 files changed, 0 insertions, 0 deletions