Skip to content

Commit

Permalink
[media] rc_core: avoid kernel oops when rmmod saa7134
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hussam Al-Tayeb authored and Mauro Carvalho Chehab committed Apr 29, 2011
1 parent 23ef710 commit 88fda56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/rc/rc-main.c
Original file line number Diff line number Diff line change
@@ -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 */

0 comments on commit 88fda56

Please sign in to comment.