]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit01ff3b70f18a0b7d11729593394b805ea2e1ab3a
treedeb72b0945886a9446eda7cb81052fbd3c570e7c
parent28be435fdf4796304443ad826eae8fe5f6265115
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