V4L/DVB: IR/mceusb: remove bad ir_input_dev use
authorJarod Wilson <jarod@redhat.com>
Thu, 29 Jul 2010 21:34:52 +0000 (18:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 9 Aug 2010 02:42:57 +0000 (23:42 -0300)
commit7a9fcb41b9370a32bb65bece9afc83701ab2d2b6
tree3b43d53f7c05c65da4b04a82d8cb35c963b9e9e7
parentda48db669f50d47c208da3648dca7cac7ea6dcca
V4L/DVB: IR/mceusb: remove bad ir_input_dev use

The ir_input_dev gets filled in by __ir_input_register, the one
allocated in mceusb_init_input_dev was being overwritten by the correct
one shortly after it was initialized (ultimately resulting in a memory
leak). This bug was inherited from imon.c, and was pointed out to me by
Maxim Levitsky.

v2: fix incorrect dev arg to dev_dbg

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