diff options
author | Hussam Al-Tayeb <ht990332@gmail.com> | 2011-02-21 19:20:26 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-04-29 16:45:52 +0200 |
commit | 88fda5619e6cd7988dc1d9a52f2da9ee8fd0e64d (patch) | |
tree | 36df1029bb38a8960132e3823811caa5d0e49791 | |
parent | [media] imon: add conditional locking in change_protocol (diff) | |
download | linux-88fda5619e6cd7988dc1d9a52f2da9ee8fd0e64d.tar.xz linux-88fda5619e6cd7988dc1d9a52f2da9ee8fd0e64d.zip |
[media] rc_core: avoid kernel oops when rmmod saa7134
The following is a patch to avoid a kernel oops when running rmmod
saa7134 on kernel 2.6.27.1. The change is as suggested by mchehab on
irc.freenode.org
Signed-off-by: Hussam Al-Tayeb <ht990332@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/rc/rc-main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index 9f0a2d9f3d1e..33afd98938da 100644 --- a/drivers/media/rc/rc-main.c +++ b/drivers/media/rc/rc-main.c @@ -707,7 +707,8 @@ static void ir_close(struct input_dev *idev) { struct rc_dev *rdev = input_get_drvdata(idev); - rdev->close(rdev); + if (rdev) + rdev->close(rdev); } /* class for /sys/class/rc */ |