linux/drivers/staging
Colin Ian King b7c56d7bfe drivers: staging: cedrus: find ctx before dereferencing it ctx
Currently if count is an invalid value the v4l2_info message will
dereference a null ctx pointer to get the dev information. Fix
this by finding ctx first and then checking for an invalid count,
this way ctxt will be non-null hence avoiding the null pointer
dereference.

Detected by CoverityScan, CID#1475337 ("Explicit null dereferenced")

Fixes: 50e761516f ("media: platform: Add Cedrus VPU decoder driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-11-07 13:08:28 +01:00
..
android mm: remove CONFIG_HAVE_MEMBLOCK 2018-10-31 08:54:15 -07:00
axis-fifo staging: axis-fifo: remove duplicated include from axis-fifo.c 2018-10-09 15:13:23 +02:00
board
clocking-wizard staging: clocking-wizard: match parenthesis indentation 2018-10-09 14:57:33 +02:00
comedi staging: comedi: ni_mio_common: scale ao INSN_CONFIG_GET_CMD_TIMING_CONSTRAINTS 2018-11-07 13:08:28 +01:00
emxx_udc staging: emxx_udc: Remove unused device_desc declaration 2018-10-09 15:13:24 +02:00
erofs Staging/IIO patches for 4.20-rc1 2018-10-29 10:38:10 -07:00
fbtft staging: fbtft: Prefer using the BIT macro 2018-10-03 11:36:08 -07:00
fsl-dpaa2 Staging/IIO patches for 4.20-rc1 2018-10-29 10:38:10 -07:00
fwserial fwserial: switch to ->[sg]et_serial() 2018-09-14 11:19:47 -04:00
gasket staging: gasket: Fix sparse "incorrect type in assignment" warnings. 2018-10-19 21:12:29 +02:00
gdm724x staging: gdm724x: redundant variables idProduct and idVendor 2018-07-11 13:12:34 +02:00
goldfish staging: goldfish: add a blank line into struct goldfish_audio 2018-07-12 21:49:24 +02:00
greybus Staging/IIO patches for 4.20-rc1 2018-10-29 10:38:10 -07:00
gs_fpgaboot
iio Staging/IIO patches for 4.20-rc1 2018-10-29 10:38:10 -07:00
ks7010 staging: ks7010: Remove extra blank line 2018-10-19 21:10:45 +02:00
media drivers: staging: cedrus: find ctx before dereferencing it ctx 2018-11-07 13:08:28 +01:00
most staging: most: usb: add release function for DCI device 2018-10-02 15:18:36 -07:00
mt29f_spinand mtd: rawnand: Deprecate ->{set,get}_features() hooks 2018-10-03 11:12:25 +02:00
mt7621-dma staging: mt7621-dma: Delete unused define 2018-10-10 13:15:23 +02:00
mt7621-dts staging: mt7621-dts: add pcie controller port registers 2018-08-08 14:08:41 +02:00
mt7621-eth Staging/IIO patches for 4.20-rc1 2018-10-29 10:38:10 -07:00
mt7621-mmc staging: mt7621-mmc: Use BIT macro instead of explicit shifting in dbg.h 2018-10-14 13:30:34 +02:00
mt7621-pci staging: mt7621-pci: Prefer using the BIT macro 2018-10-09 14:59:39 +02:00
mt7621-pinctrl Revert "staging: mt7621-pinctrl: replace core_initcall_sync with builtin_platform_driver" 2018-07-10 12:36:28 +02:00
mt7621-spi
netlogic
nvec
octeon
octeon-usb staging: octeon-hcd: remove unnecessary unlikely() 2018-09-14 15:21:06 +02:00
olpc_dcon staging: olpc_dcon: add a missing dependency 2018-09-20 12:28:02 +02:00
pi433 staging: pi433: eliminate a temporary variable 2018-08-27 12:07:56 +02:00
rtl8188eu staging: rtl8188eu: core: Use sizeof(*p) instead of sizeof(struct P) for memory allocation 2018-10-19 21:10:45 +02:00
rtl8192e Staging/IIO patches for 4.20-rc1 2018-10-29 10:38:10 -07:00
rtl8192u Staging/IIO patches for 4.20-rc1 2018-10-29 10:38:10 -07:00
rtl8712 staging: rtl8712: add SPDX identifiers 2018-10-03 11:36:09 -07:00
rtl8723bs staging: rtl8723bs: Fix the return value in case of error in 'rtw_wx_read32()' 2018-11-07 13:08:28 +01:00
rtlwifi staging: rtlwifi: phydm: fix spelling mistake "Abnrormal" -> "Abnormal" 2018-10-14 13:31:53 +02:00
rts5208 staging: rts5208: Remove unnecessary braces {} 2018-09-25 21:10:36 +02:00
sm750fb staging: sm750fb: Remove space after cast 2018-10-09 14:57:33 +02:00
speakup staging: speakup: Add a pair of braces 2018-10-19 21:10:45 +02:00
unisys
vboxvideo Staging/IIO patches for 4.20-rc1 2018-10-29 10:38:10 -07:00
vc04_services staging: vc04_services: Drop no longer needed headers 2018-10-09 15:24:21 +02:00
vme
vt6655 staging: vt6655: Remove space after cast 2018-10-09 14:59:58 +02:00
vt6656 staging: vt6655: remove some redundant variables 2018-07-11 14:47:08 +02:00
wilc1000 staging: wilc1000: prefer 'help' in KConfig 2018-10-11 12:10:32 +02:00
wlan-ng staging: wlan-ng: Replace long int with long 2018-10-19 21:10:45 +02:00
xgifb
Kconfig staging: dgnc: delete the driver 2018-10-02 15:14:14 -07:00
Makefile staging: dgnc: delete the driver 2018-10-02 15:14:14 -07:00