linux-kernel-test/drivers/media/video/saa7134
Mauro Carvalho Chehab 7aedd5ec87 V4L/DVB (12701): saa7134: ir-kbd-i2c init data needs a persistent object
ir-kbd-i2c's ir_probe() function can be called much later (i.e. at
ir-kbd-i2c module load), than the lifetime of a struct IR_i2c_init_data
allocated off of the stack in cx18_i2c_new_ir() at registration time.
Make sure we pass a pointer to a persistent IR_i2c_init_data object at
i2c registration time.

Thanks to Brian Rogers, Dustin Mitchell, Andy Walls and Jean Delvare to
rise this question.

Before this patch, if ir-kbd-i2c were probed after SAA7134, trash data
were used.

Compile tested only, but the patch is identical to em28xx one. So, it
should work properly.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-09-12 12:20:17 -03:00
..
Kconfig V4L/DVB (12463): Add support for Compro VideoMate S350 DVB-S PCI card. 2009-09-12 12:18:57 -03:00
Makefile V4L/DVB (11967): v4l: i2c modules must be linked before the v4l2 drivers 2009-06-16 19:07:41 -03:00
saa6752hs.c V4L/DVB (12487): Fix control AC-3 of the 6752HS 2009-09-12 12:19:11 -03:00
saa7134-alsa.c V4L/DVB (12586): Update ALSA capture controls according to selected source. 2009-09-12 12:19:41 -03:00
saa7134-cards.c V4L/DVB (12589): Add support for RoverMedia TV Link Pro FM 2009-09-12 12:19:43 -03:00
saa7134-core.c V4L/DVB (12216): saa7134: set RDS capability if applicable. 2009-09-12 12:17:32 -03:00
saa7134-dvb.c V4L/DVB (12463): Add support for Compro VideoMate S350 DVB-S PCI card. 2009-09-12 12:18:57 -03:00
saa7134-empress.c headers: smp_lock.h redux 2009-07-12 12:22:34 -07:00
saa7134-i2c.c V4L/DVB (11860): saa7134: fix quirk in saa7134_i2c_xfer for the saa7131 bridge 2009-06-16 18:21:14 -03:00
saa7134-input.c V4L/DVB (12701): saa7134: ir-kbd-i2c init data needs a persistent object 2009-09-12 12:20:17 -03:00
saa7134-reg.h
saa7134-ts.c V4L/DVB (11938): big rework of TS for saa7134 2009-06-16 19:07:27 -03:00
saa7134-tvaudio.c V4L/DVB (9638): drivers/media: use ARRAY_SIZE 2008-12-29 17:53:34 -02:00
saa7134-vbi.c
saa7134-video.c V4L/DVB (12372): saa7134: fix lock imbalance 2009-09-12 12:18:29 -03:00
saa7134.h V4L/DVB (12701): saa7134: ir-kbd-i2c init data needs a persistent object 2009-09-12 12:20:17 -03:00