From: Andy Walls Date: Sat, 5 Sep 2009 13:58:37 +0000 (-0300) Subject: V4L/DVB (12699): cx18: ir-kbd-i2c initialization data should point to a persistent... X-Git-Tag: v2.6.32-rc1~679^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78f2e672b37ae8935ec0b97cedbc2d877ffa0c5f;p=pandora-kernel.git V4L/DVB (12699): cx18: ir-kbd-i2c initialization data should point to 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 for pointing out a solution, and Dustin Mitchell for testing against a 2.6.30 kernel. Reported-by: Dustin Mitchell Reported-by: Brian Rogers Tested-by: Dustin Mitchell Signed-off-by: Andy Walls Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed