V4L/DVB: IR/imon: remove bad ir_input_dev use
authorJarod Wilson <jarod@redhat.com>
Wed, 28 Jul 2010 01:29:44 +0000 (22:29 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 9 Aug 2010 02:42:57 +0000 (23:42 -0300)
commitda48db669f50d47c208da3648dca7cac7ea6dcca
treedeb72b0945886a9446eda7cb81052fbd3c570e7c
parent20cd19597238723237d214dbab18c0b7c68c5814
V4L/DVB: IR/imon: remove bad ir_input_dev use

The ir_input_dev gets filled in by __ir_input_register, the one
allocated in imon_init_idev was being overwritten by the correct one
shortly after it was initialized (ultimately resulting in a memory
leak). Additionally, there was an ill-advised memcpy into that
extraneous ir_input_dev which gets fixed by this.

Ill-advised memcpy pointed out by Dmitry Torokhov, bad usage of
ir_input_dev pointed out by Maxim Levitsky.

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/imon.c