]> git.baikalelectronics.ru Git - kernel.git/commit
[media] rc/imon: fix ffdc device detection oops
authorJarod Wilson <jarod@redhat.com>
Thu, 6 Jan 2011 19:57:14 +0000 (16:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 Jan 2011 13:45:49 +0000 (11:45 -0200)
commit33801a4e94ec28474c88e991d5c30b69e449d168
treeef8716911d93743d0378552498203db6194dfb5c
parentd3cf22431111b1a5929e7d2933c56062b2a6cf2b
[media] rc/imon: fix ffdc device detection oops

There's a nasty bug that slipped in when the rc device interface was
altered, only affecting the older 0xffdc imon devices. We were trying
to access ictx->rdev->allowed_protos before ictx->rdev had been set.

There's also an issue with call ordering that meant the correct
keymap wasn't getting loaded for MCE IR type 0xffdc devices.

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