aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_request.c
diff options
context:
space:
mode:
authorOliver Hartkopp <[email protected]>2022-12-06 20:12:59 +0000
committerMarc Kleine-Budde <[email protected]>2022-12-07 09:30:47 +0000
commit0acc442309a0a1b01bcdaa135e56e6398a49439c (patch)
tree2d4fd08a03b6ce4e8b99ea366d2e015f207f6d80 /net/bluetooth/hci_request.c
parentMerge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/n... (diff)
downloadkernel-0acc442309a0a1b01bcdaa135e56e6398a49439c.tar.gz
kernel-0acc442309a0a1b01bcdaa135e56e6398a49439c.zip
can: af_can: fix NULL pointer dereference in can_rcv_filter
Analogue to commit 8aa59e355949 ("can: af_can: fix NULL pointer dereference in can_rx_register()") we need to check for a missing initialization of ml_priv in the receive path of CAN frames. Since commit 4e096a18867a ("net: introduce CAN specific pointer in the struct net_device") the check for dev->type to be ARPHRD_CAN is not sufficient anymore since bonding or tun netdevices claim to be CAN devices but do not initialize ml_priv accordingly. Fixes: 4e096a18867a ("net: introduce CAN specific pointer in the struct net_device") Reported-by: [email protected] Reported-by: Wei Chen <[email protected]> Signed-off-by: Oliver Hartkopp <[email protected]> Link: https://lore.kernel.org/all/[email protected] Cc: [email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'net/bluetooth/hci_request.c')
0 files changed, 0 insertions, 0 deletions