Geert Uytterhoeven
2ac0e1524d
net: mscc: ocelot: Fix uninitialized error in ocelot_netdevice_event()
...
With gcc-4.1.2:
drivers/net/ethernet/mscc/ocelot.c: In function ‘ocelot_netdevice_event’:
drivers/net/ethernet/mscc/ocelot.c:1129: warning: ‘ret’ may be used uninitialized in this function
If the list iterated over by netdev_for_each_lower_dev() is empty, ret
is never initialized, and converted into a notifier return value.
Fix this by preinitializing ret to zero.
Fixes: a556c76adc ("net: mscc: Add initial Ocelot switch support")
Signed-off-by: Geert Uytterhoeven <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2018-06-07 16:54:39 -04:00
..
appletalk
arcnet
bonding
bonding: re-evaluate force_primary when the primary slave name changes
2018-06-07 16:47:10 -04:00
caif
can
- Introduce arithmetic overflow test helper functions (Rasmus)
2018-06-06 17:27:14 -07:00
dsa
net: dsa: b53: Fix for brcm tag issue in Cygnus SoC
2018-06-06 13:47:16 -04:00
ethernet
net: mscc: ocelot: Fix uninitialized error in ocelot_netdevice_event()
2018-06-07 16:54:39 -04:00
fddi
fjes
hamradio
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2018-06-06 18:39:49 -07:00
hippi
hyperv
hv_netvsc: Fix a network regression after ifdown/ifup
2018-06-07 16:24:51 -04:00
ieee802154
ipvlan
netdevsim
netdevsim: Add extack error message for devlink reload
2018-06-05 12:32:37 -04:00
phy
net: phy: broadcom: Enable 125 MHz clock on LED4 pin for BCM54612E by default.
2018-06-05 09:43:09 -04:00
plip
ppp
Merge branch 'work.aio-1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2018-06-04 13:57:43 -07:00
slip
team
team: use netdev_features_t instead of u32
2018-06-04 17:30:04 -04:00
usb
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-06-03 09:31:58 -04:00
vmxnet3
wan
wan/fsl_ucc_hdlc: use dma_zalloc_coherent instead of allocator/memset
2018-06-04 17:27:59 -04:00
wimax
wireless
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2018-06-06 18:39:49 -07:00
xen-netback
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
ifb: fix packets checksum
2018-05-28 23:02:22 -04:00
Kconfig
virtio_net: Extend virtio to use VF datapath when available
2018-05-28 22:59:54 -04:00
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
net: Introduce net_failover driver
2018-05-28 22:59:54 -04:00
mdio.c
mii.c
net_failover.c
net_failover: Use netdev_features_t instead of u32
2018-06-04 17:30:04 -04:00
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
net: in virtio_net_hdr only add VLAN_HLEN to csum_start if payload holds vlan
2018-06-07 16:15:38 -04:00
thunderbolt.c
tun.c
net: in virtio_net_hdr only add VLAN_HLEN to csum_start if payload holds vlan
2018-06-07 16:15:38 -04:00
veth.c
virtio_net.c
net: in virtio_net_hdr only add VLAN_HLEN to csum_start if payload holds vlan
2018-06-07 16:15:38 -04:00
vrf.c
vrf: add CRC32c offload to device features
2018-05-28 22:55:13 -04:00
vsockmon.c
vxlan.c
xen-netfront.c