linux/drivers/media/usb
Eugeniu Rosca 87e9201108 media: mxl111sf: Fix potential null pointer dereference
Reviewing the delta between cppcheck output of v4.9.39 and v4.9.40
stable updates, I stumbled on the new warning:

mxl111sf.c:80: (warning) Possible null pointer dereference: rbuf

Since copying state->rcvbuf into rbuf is not needed in the 'write-only'
scenario (i.e. calling mxl111sf_ctrl_msg() from mxl111sf_i2c_send_data()
or from mxl111sf_write_reg()), bypass memcpy() in this case.

Fixes: d90b336f3f ("[media] mxl111sf: Fix driver to use heap allocate buffers for USB messages")

Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Reviewed-by: Michael Ira Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-08-27 06:58:19 -04:00
..
airspy media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
as102 media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
au0828 media: au0828: fix unbalanced lock/unlock in au0828_usb_probe 2017-08-27 06:57:33 -04:00
b2c2 media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
cpia2 media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
cx231xx media: cx231xx: fix use-after-free when unregistering the i2c_client for the dvb demod 2017-08-27 06:33:47 -04:00
dvb-usb media: dvb-usb: Add memory free on error path in dw2102_probe() 2017-08-27 06:57:13 -04:00
dvb-usb-v2 media: mxl111sf: Fix potential null pointer dereference 2017-08-27 06:58:19 -04:00
em28xx media: em28xx: calculate left volume level correctly 2017-08-26 14:31:49 -04:00
go7007 media: usb: make snd_pcm_hardware const 2017-08-20 08:05:10 -04:00
gspca media: : usb: add const to v4l2_file_operations structures 2017-07-20 16:45:25 -04:00
hackrf media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
hdpvr media: usb: make i2c_adapter const 2017-08-26 08:41:58 -04:00
msi2500 media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
pulse8-cec media: usb: pulse8-cec: constify serio_device_id 2017-08-20 08:27:13 -04:00
pvrusb2 media: usb: make i2c_adapter const 2017-08-26 08:41:58 -04:00
pwc [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
rainshadow-cec media: usb: rainshadow-cec: constify serio_device_id 2017-08-20 08:27:29 -04:00
s2255 media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
siano [media] siano: make it work again with CONFIG_VMAP_STACK 2017-02-14 18:13:49 -02:00
stk1160 media: usb: make i2c_adapter const 2017-08-26 08:41:58 -04:00
stkwebcam media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
tm6000 media: rc: rename RC_TYPE_* to RC_PROTO_* and RC_BIT_* to RC_PROTO_BIT_* 2017-08-20 10:02:48 -04:00
ttusb-budget media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
ttusb-dec media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
usbtv media: usb: make snd_pcm_hardware const 2017-08-20 08:05:10 -04:00
usbvision media: usb: make i2c_adapter const 2017-08-26 08:41:58 -04:00
uvc media: uvcvideo: Constify video_subdev structures 2017-08-20 08:10:24 -04:00
zr364xx media: zr364xx: constify videobuf_queue_ops structures 2017-08-20 08:07:45 -04:00
Kconfig [media] rainshadow-cec: new RainShadow Tech HDMI CEC driver 2017-04-10 12:42:10 -03:00
Makefile [media] rainshadow-cec: new RainShadow Tech HDMI CEC driver 2017-04-10 12:42:10 -03:00