linux_dsm_epyc7002/drivers/net
Dan Carpenter 78b35fd94c virtio_net: Fix error code in probe()
[ Upstream commit 411ea23a76526e6efed0b601abb603d3c981b333 ]

Set a negative error code intead of returning success if the MTU has
been changed to something invalid.

Fixes: fe36cbe067 ("virtio_net: clear MTU when out of range")
Reported-by: Robert Buhren <robert.buhren@sect.tu-berlin.de>
Reported-by: Felicitas Hetzelt <file@sect.tu-berlin.de>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X8pGVJSeeCdII1Ys@mwanda
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:54:00 +01:00
..
appletalk
arcnet
bonding bonding: fix feature flag setting at init time 2020-12-08 11:26:08 -08:00
caif
can can: m_can: m_can_config_endisable(): remove double clearing of clock stop request bit 2020-12-30 11:53:47 +01:00
dsa net: dsa: qca: ar9331: fix sleeping function called from invalid context bug 2020-12-30 11:53:56 +01:00
ethernet nfp: move indirect block cleanup to flower app stop callback 2020-12-30 11:54:00 +01:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipa
ipvlan
mdio
netdevsim netdevsim: Add debugfs toggle to reject BPF programs in verifier 2020-12-09 16:27:42 +01:00
pcs
phy
plip
ppp
slip
team
usb
vmxnet3
wan
wimax
wireguard
wireless ath11k: Fix incorrect tlvs in scan start command 2020-12-30 11:53:51 +01:00
xen-netback
bareudp.c
dummy.c
eql.c
geneve.c Revert "geneve: pull IP header before ECN decapsulation" 2020-12-09 14:40:07 -08:00
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.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 virtio_net: Fix error code in probe() 2020-12-30 11:54:00 +01:00
vrf.c vrf: packets with lladdr src needs dst at input with orig_iif when needs strict 2020-12-05 13:46:07 -08:00
vsockmon.c
vxlan.c
xen-netfront.c