linux_dsm_epyc7002/drivers/media
Devin Heitmueller 77fc286328 [media] au0828: fix possible race condition in usage of dev->ctrlmsg
The register read function is referencing the dev->ctrlmsg structure outside
of the dev->mutex lock, which can cause corruption of the value if multiple
callers are invoking au0828_readreg() simultaneously.

Use a stack variable to hold the result, and copy the buffer returned by
usb_control_msg() to that variable.

In reality, the whole recv_control_msg() function can probably be collapsed
into au0288_readreg() since it is the only caller.

Also get rid of cmd_msg_dump() since the only case in which the function is
ever called only is ever passed a single byte for the response (and it is
already logged).

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-08-11 12:37:55 -03:00
..
common [media] xc5000: change filename to production/redistributable xc5000c firmware 2012-08-09 21:01:44 -03:00
dvb [media] mantis: Terratec Cinergy C PCI HD (CI) 2012-08-10 17:04:58 -03:00
radio [media] wl128x: remove V4L2_FL_LOCK_ALL_FOPS 2012-08-09 19:48:32 -03:00
rc [media] Add support for the IguanaWorks USB IR Transceiver 2012-07-30 21:53:49 -03:00
video [media] au0828: fix possible race condition in usage of dev->ctrlmsg 2012-08-11 12:37:55 -03:00
Kconfig [media] Kconfig: Split the core support options from the driver ones 2012-07-06 09:12:59 -03:00
Makefile [media] media: Entities, pads and links 2011-03-22 04:53:10 -03:00
media-device.c [media] media: fix truncated entity specification 2011-12-20 09:31:50 -02:00
media-devnode.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
media-entity.c [media] media: Add link_validate() op to check links to the sink pad 2012-05-14 08:44:11 -03:00