aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_stoptask.c
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas@paradise.net.nz>2012-07-06 23:27:57 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-02 09:47:52 -0700
commitabfbc26e32cd42374213c90766a5f416ad58732c (patch)
tree902a229338efdf15c8502c2183586e72aa681c02 /kernel/sched_stoptask.c
parentfe979e2c0aa6e5b9157c3b381b43de2ca6965d7e (diff)
downloadkernel_samsung_smdk4412-abfbc26e32cd42374213c90766a5f416ad58732c.zip
kernel_samsung_smdk4412-abfbc26e32cd42374213c90766a5f416ad58732c.tar.gz
kernel_samsung_smdk4412-abfbc26e32cd42374213c90766a5f416ad58732c.tar.bz2
media: Avoid sysfs oops when an rc_dev's raw device is absent
commit 720bb6436ff30fccad05cf5bdf961ea5b1f5686d upstream. For some reason, when the lirc daemon learns that a usb remote control has been unplugged, it wants to read the sysfs attributes of the disappearing device. This is useful for uncovering transient inconsistencies, but less so for keeping the system running when such inconsistencies exist. Under some circumstances (like every time I unplug my dvb stick from my laptop), lirc catches an rc_dev whose raw event handler has been removed (presumably by ir_raw_event_unregister), and proceeds to interrogate the raw protocols supported by the NULL pointer. This patch avoids the NULL dereference, and ignores the issue of how this state of affairs came about in the first place. Version 2 incorporates changes recommended by Mauro Carvalho Chehab (-ENODEV instead of -EINVAL, and a signed-off-by). Signed-off-by: Douglas Bagnall <douglas@paradise.net.nz> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Cc: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/sched_stoptask.c')
0 files changed, 0 insertions, 0 deletions