Arnd Bergmann
ab58070569
mlxsw: spectrum_router: avoid potential uninitialized data usage
...
If fi->fib_nhs is zero, the router interface pointer is uninitialized, as shown by
this warning:
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c: In function 'mlxsw_sp_router_fib_event':
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c:1674:21: error: 'r' may be used uninitialized in this function [-Werror=maybe-uninitialized]
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c:1643:23: note: 'r' was declared here
This changes the loop so we handle the case the same way as finding no router
interface pointer attached to one of the nexthops to ensure we always
trap here instead of using uninitialized data.
Fixes: b45f64d16d ("mlxsw: spectrum_router: Use FIB notifications instead of switchdev calls")
Signed-off-by: Arnd Bergmann <[email protected] >
Acked-by: Ido Schimmel <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2016-10-03 01:55:18 -04:00
..
accessibility
acpi
nfit: fail DSMs that return non-zero status by default
2016-09-21 09:35:19 -07:00
amba
android
ata
pata_ninja32: Avoid corrupting status flags
2016-08-30 11:59:47 -04:00
atm
atm: iphase: fix newline escape and minor tweak to source formatting
2016-09-15 19:15:55 -04:00
auxdisplay
base
regmap: Fix for v4.8
2016-09-23 11:50:49 -07:00
bcma
bcma: use of_dma_configure() to set initial dma mask
2016-09-09 12:00:37 +03:00
block
Revert "floppy: refactor open() flags handling"
2016-08-25 08:56:51 -06:00
bluetooth
Bluetooth: Use single return in hci_uart_tty_ioctl() call
2016-09-24 06:40:24 +02:00
bus
arm-cci: pmu: Fix typo in event name
2016-09-07 21:24:42 -07:00
cdrom
char
virtio: fixes for 4.8
2016-09-09 14:52:05 -07:00
clk
Clock Fixes for the Allwinner SoCs, 4.8 Edition
2016-09-08 12:54:24 -07:00
clocksource
clocksource/drivers/atmel-pit: Fix compilation error
2016-08-29 09:51:39 +02:00
connector
cpufreq
cpufreq: dt: Add terminate entry for of_device_id tables
2016-08-31 02:49:05 +02:00
cpuidle
crypto
chcr/cxgb4i/cxgbit/RDMA/cxgb4: Allocate resources dynamically for all cxgb4 ULD's
2016-09-19 01:37:32 -04:00
dax
dax: fix mapping size check
2016-09-03 10:40:57 -07:00
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware
Merge branch 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2016-09-13 12:02:00 -07:00
fmc
fpga
gpio
gpio: sa1100: fix irq probing for ucb1x00
2016-09-08 00:42:57 +02:00
gpu
drm/udl: fix line iterator in damage handling
2016-09-28 13:29:18 +10:00
hid
hsi
hv
hwmon
hwmon: (it87) Add missing sysfs attribute group terminator
2016-08-29 05:31:31 -07:00
hwspinlock
hwtracing
i2c
i2c: qup: skip qup_i2c_suspend if the device is already runtime suspended
2016-09-22 20:11:14 +02:00
ide
idle
iio
Second set of IIO fixes for the 4.8 cycle.
2016-09-09 13:44:37 +02:00
infiniband
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2016-09-23 06:46:57 -04:00
input
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
2016-09-30 21:25:09 -07:00
iommu
ipack
irqchip
irqchip/mips-gic: Fix local interrupts
2016-09-20 23:20:02 +02:00
isdn
mISDN: mark symbols static where possible
2016-09-01 23:36:17 -07:00
leds
lguest
lightnvm
macintosh
mailbox
fix 📫 bcm-pdc-mailbox:mark symbols static where possible
2016-08-29 18:43:39 +05:30
mcb
md
Merge tag 'md/4.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md
2016-09-13 11:19:52 -07:00
media
[media] cx23885/saa7134: assign q->dev to the PCI device
2016-09-19 12:38:05 -03:00
memory
memstick
message
mfd
misc
lkdtm: adjust usercopy tests to bypass const checks
2016-09-06 12:17:30 -07:00
mmc
mmc: dw_mmc: fix the spamming log message
2016-09-22 09:34:13 +02:00
mtd
Another round of MTD fixes for v4.8
2016-09-28 12:53:08 -07:00
net
mlxsw: spectrum_router: avoid potential uninitialized data usage
2016-10-03 01:55:18 -04:00
nfc
ntb
nubus
nvdimm
libnvdimm, region: fix flush hint table thinko
2016-09-24 11:45:38 -07:00
nvme
nvme-rdma: only clear queue flags after successful connect
2016-09-22 19:58:17 -06:00
nvmem
of
oprofile
parisc
parport
pci
PCI updates for v4.8:
2016-09-14 14:06:30 -07:00
pcmcia
pcmcia: lubbock: fix sockets configuration
2016-09-12 10:57:01 +01:00
perf
drivers/perf: arm_pmu: Fix NULL pointer dereference during probe
2016-09-02 17:17:52 +01:00
phy
pinctrl
platform
intel_pmic_gpio: Make explicitly non-modular
2016-08-28 22:31:52 -07:00
pnp
power
powercap
pps
ps3
ptp
ptp: ixp46x: remove NO_IRQ handling
2016-09-06 16:57:02 -07:00
pwm
rapidio
rapidio/rio_cm: avoid GFP_KERNEL in atomic context
2016-09-19 15:36:17 -07:00
ras
regulator
Merge remote-tracking branches 'regulator/fix/email' and 'regulator/fix/qcom-smd' into regulator-linus
2016-09-06 12:31:34 +01:00
remoteproc
reset
rpmsg
rtc
s390
s390/qeth: fix setting VIPA address
2016-09-16 04:29:14 -04:00
sbus
scsi
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2016-10-02 22:20:41 -04:00
sfi
sh
sn
soc
spi
Merge remote-tracking branches 'spi/fix/lock', 'spi/fix/maintainers', 'spi/fix/put', 'spi/fix/pxa2xx', 'spi/fix/sh-msiof' and 'spi/fix/timeout' into spi-linus
2016-09-06 12:32:09 +01:00
spmi
ssb
staging
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2016-09-23 06:46:57 -04:00
target
chcr/cxgb4i/cxgbit/RDMA/cxgb4: Allocate resources dynamically for all cxgb4 ULD's
2016-09-19 01:37:32 -04:00
tc
thermal
thermal: rcar_thermal: Fix priv->zone error handling
2016-09-06 20:46:06 +08:00
thunderbolt
thunderbolt: Don't declare Falcon Ridge unsupported
2016-08-31 13:25:02 +02:00
tty
serial: 8250: added acces i/o products quad and octal serial cards
2016-08-31 16:28:26 +02:00
uio
usb
USB-serial fixes for v4.8-rc7
2016-09-16 17:42:10 +02:00
uwb
vfio
vhost
video
virt
virtio
virtio: mark vring_dma_dev() static
2016-09-09 21:12:35 +03:00
vlynq
vme
w1
watchdog
xen
xenbus: don't look up transaction IDs for ordinary writes
2016-08-24 18:16:18 +01:00
zorro
Kconfig
Makefile