diff options
author | Andy Walls <awalls@radix.net> | 2009-09-05 09:58:37 -0400 |
---|---|---|
committer | Andy Walls <awalls@radix.net> | 2009-09-05 09:58:37 -0400 |
commit | 38df09ba8b967b4d219c2afe04dcc1ae743e766f (patch) | |
tree | a1e1cb9c55b458898f497d3b3631ef5f163fdb37 /linux/drivers/media/video/gspca/pac207.c | |
parent | 00c1eda676d0707af2602f156278772fe3c30cb8 (diff) | |
download | mediapointer-dvb-s2-38df09ba8b967b4d219c2afe04dcc1ae743e766f.tar.gz mediapointer-dvb-s2-38df09ba8b967b4d219c2afe04dcc1ae743e766f.tar.bz2 |
cx18: ir-kbd-i2c initialization data should point to a persistent object
From: Andy Walls <awalls@radix.net>
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 Brain Rogers for pointing out a solution, and Dustin Mitchell for
testing against a 2.6.30 kernel.
Reported-by: Dustin Mitchell <soxslayer@gmail.com>
Reported-by: Brian Rogers <brian@xyzw.org>
Priority: high
Tested-by: Dustin Mitchell <soxslayer@gmail.com>
Signed-off-by: Andy Walls <awalls@radix.net>
Diffstat (limited to 'linux/drivers/media/video/gspca/pac207.c')
0 files changed, 0 insertions, 0 deletions