uboot/drivers
Nishanth Menon 9cb05a8f9f drivers: remoteproc: rproc-uclass: Fix check for NULL pointers
Neither uc_pdata->name nor check_name are supposed to be NULL in
_rproc_name_is_unique(). if uc_pdata->name is NULL, we are not
intialized yet, however if check_data is NULL, we do not have
proper data. Further, if either were NULL, strlen will crap out
while attempting to derefence NULL.

Instead, just check if either of these are NULL and bail out.

This should also fix the following coverity scan warnings:
*** CID 132281:  Null pointer dereferences  (FORWARD_NULL)
/drivers/remoteproc/rproc-uclass.c: 73 in _rproc_name_is_unique()

Reported-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
2015-12-05 18:22:32 -05:00
..
adc
bios_emulator
block
bootcount
clk
core
cpu
crypto
ddr
demo
dfu
dma
fpga
gpio Change e-mail address of Kamil Lulko 2015-12-05 18:22:32 -05:00
hwmon
i2c
input
led
memory
misc
mmc
mtd
net
pci
pcmcia
pinctrl
power
pwm
qe
ram
remoteproc drivers: remoteproc: rproc-uclass: Fix check for NULL pointers 2015-12-05 18:22:32 -05:00
rtc
serial ns16550: change reg-shift property default to zero 2015-12-05 18:22:29 -05:00
soc
sound
spi
thermal
timer
tpm
twserial
usb
video
watchdog
Kconfig
Makefile