linux-stable/drivers/net
Sean Nyekjaer 1499b89289 net: dsa: microchip: provide a list of valid protocols for xmit handler
Provide a list of valid protocols for which the driver will provide
it's deferred xmit handler.

When using DSA_TAG_PROTO_KSZ8795 protocol, it does not provide a
"connect" method, therefor ksz_connect() is not allocating ksz_tagger_data.

This avoids the following null pointer dereference:
 ksz_connect_tag_protocol from dsa_register_switch+0x9ac/0xee0
 dsa_register_switch from ksz_switch_register+0x65c/0x828
 ksz_switch_register from ksz_spi_probe+0x11c/0x168
 ksz_spi_probe from spi_probe+0x84/0xa8
 spi_probe from really_probe+0xc8/0x2d8

Fixes: ab32f56a41 ("net: dsa: microchip: ptp: add packet transmission timestamping")
Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20231206071655.1626479-1-sean@geanix.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-12-07 10:03:17 -08:00
..
arcnet arcnet: restoring support for multiple Sohard Arcnet cards 2023-12-04 18:01:20 -08:00
bonding bonding: stop the device in bond_setup_by_slave() 2023-11-13 20:55:08 -08:00
caif
can
dsa net: dsa: microchip: provide a list of valid protocols for xmit handler 2023-12-07 10:03:17 -08:00
ethernet nfp: flower: fix for take a mutex lock in soft irq context and rcu lock 2023-12-07 10:18:53 +00:00
fddi
fjes
hamradio
hippi
hyperv hv_netvsc: rndis_filter needs to select NLS 2023-12-01 20:12:24 -08:00
ieee802154 net: ieee802154: adf7242: Fix some potential buffer overflow in adf7242_stats_show() 2023-10-22 11:28:43 +01:00
ipa net: ipa: fix one GSI register field width 2023-11-23 08:52:00 -08:00
ipvlan ipvlan: add ipvlan_route_v6_outbound() helper 2023-11-10 10:59:22 +00:00
mctp
mdio net: mdio: fill in missing MODULE_DESCRIPTION()s 2023-11-01 21:50:57 -07:00
netdevsim netdevsim: Don't accept device bound programs 2023-11-23 13:04:04 -08:00
pcs net: pcs: xpcs: Add 2500BASE-X case in get state for XPCS drivers 2023-10-27 15:59:44 -07:00
phy net: phylink: initialize carrier state at creation 2023-11-07 22:32:23 +00:00
plip
ppp ppp: limit MRU to 64K 2023-11-13 11:09:20 +00:00
pse-pd
slip
team
thunderbolt
usb r8152: add vendor/device ID pair for ASUS USB-C2500 2023-12-06 10:38:38 +01:00
vmxnet3
vxlan vxlan: Cleanup IFLA_VXLAN_PORT_RANGE entry in vxlan_get_size() 2023-10-27 15:36:38 -07:00
wan
wireguard wireguard: use DEV_STATS_INC() 2023-11-19 19:48:25 +00:00
wireless wireless fixes: 2023-11-29 19:43:34 -08:00
wwan net: wwan: replace deprecated strncpy with strscpy 2023-10-20 18:15:05 -07:00
xen-netback As usual, lots of singleton and doubleton patches all over the tree and 2023-11-02 20:53:31 -10:00
Kconfig netkit, bpf: Add bpf programmable net device 2023-10-24 16:06:03 -07:00
LICENSE.SRC
Makefile netkit, bpf: Add bpf programmable net device 2023-10-24 16:06:03 -07:00
Space.c
amt.c net: fill in MODULE_DESCRIPTION()s under drivers/net/ 2023-10-28 11:29:28 +01:00
bareudp.c bareudp: use ports to lookup route 2023-10-26 15:21:09 +02:00
dummy.c net: fill in MODULE_DESCRIPTION()s under drivers/net/ 2023-10-28 11:29:28 +01:00
eql.c net: fill in MODULE_DESCRIPTION()s under drivers/net/ 2023-10-28 11:29:28 +01:00
geneve.c geneve: use generic function for tunnel IPv6 route lookup 2023-10-23 08:48:57 +01:00
gtp.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-10-26 13:46:28 -07:00
ifb.c net: fill in MODULE_DESCRIPTION()s under drivers/net/ 2023-10-28 11:29:28 +01:00
loopback.c
macsec.c
macvlan.c macvlan: Don't propagate promisc change to lower dev in passthru 2023-11-16 10:52:59 +01:00
macvtap.c net: fill in MODULE_DESCRIPTION()s under drivers/net/ 2023-10-28 11:29:28 +01:00
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
netkit.c netkit: Reject IFLA_NETKIT_PEER_INFO in netkit_change_link 2023-11-27 16:07:34 -08:00
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
sungem_phy.c net: fill in MODULE_DESCRIPTION()s under drivers/net/ 2023-10-28 11:29:28 +01:00
tap.c net: fill in MODULE_DESCRIPTION()s under drivers/net/ 2023-10-28 11:29:28 +01:00
tun.c
veth.c net: veth: fix packet segmentation in veth_convert_skb_to_xdp_buff 2023-12-05 19:24:26 -08:00
virtio_net.c virtio_net: use u64_stats_t infra to avoid data-races 2023-10-27 10:58:15 +01:00
vrf.c net: Move {l,t,d}stats allocation to core and convert veth & vrf 2023-11-20 10:15:16 -08:00
vsockmon.c
xen-netfront.c