linux/drivers/net
Nathan Huckleberry 106c67ce46 net: korina: Fix return type of korina_send_packet
The ndo_start_xmit field in net_device_ops is expected to be of type
netdev_tx_t (*ndo_start_xmit)(struct sk_buff *skb, struct net_device *dev).

The mismatched return type breaks forward edge kCFI since the underlying
function definition does not match the function hook definition.

The return type of korina_send_packet should be changed from int to
netdev_tx_t.

Reported-by: Dan Carpenter <error27@gmail.com>
Link: https://github.com/ClangBuiltLinux/linux/issues/1703
Cc: llvm@lists.linux.dev
Signed-off-by: Nathan Huckleberry <nhuck@google.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20220912214344.928925-1-nhuck@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-09-19 18:28:50 -07:00
..
appletalk
arcnet
bonding Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-09-08 18:38:30 +02:00
caif
can can: dev: add CAN XL support to virtual CAN 2022-09-15 09:08:09 +02:00
dsa net: dsa: microchip: lan937x: fix reference count leak in lan937x_mdio_register() 2022-09-19 14:17:59 -07:00
ethernet net: korina: Fix return type of korina_send_packet 2022-09-19 18:28:50 -07:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipa net: ipa: don't have gsi_channel_update() return a value 2022-09-09 11:45:25 +01:00
ipvlan
mctp
mdio Immutable branch between MFD Net and Pinctrl due for the v6.0 merge window 2022-09-19 14:21:54 -07:00
netdevsim
pcs
phy net: phy: micrel: Cable Diag feature for lan8814 phy 2022-09-19 17:57:46 -07:00
plip
ppp
slip
team
usb Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-09-08 18:38:30 +02:00
vmxnet3
vxlan
wan
wireguard
wireless Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-09-08 18:38:30 +02:00
wwan
xen-netback
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c
veth.c
virtio_net.c
vrf.c
vsockmon.c
xen-netfront.c