[media] ir: avoid race conditions at device disconnect
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 14 Oct 2010 15:23:56 +0000 (12:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 09:54:01 +0000 (07:54 -0200)
commitb4d752b308493b08b51ea04361848ef63d0cad42
tree9e74d74471f5a1e80f37c80648e271c5ed2604a1
parentb784cfcec7293f688b09d3850826216a4e134d2e
[media] ir: avoid race conditions at device disconnect

It is possible that, while ir_unregister_class() is handling, some
application could try to access the sysfs nodes, causing an OOPS.

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