* [PATCH] avoid kernel oops when rmmod saa7134
@ 2011-02-21 18:20 Hussam Al-Tayeb
0 siblings, 0 replies; only message in thread
From: Hussam Al-Tayeb @ 2011-02-21 18:20 UTC (permalink / raw)
To: linux-media
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>
--- a/drivers/media/rc/rc-main.c
+++ b/drivers/media/rc/rc-main.c
@@ -701,7 +701,7 @@
{
struct rc_dev *rdev = input_get_drvdata(idev);
- rdev->close(rdev);
+ if (rdev) rdev->close(rdev);
}
/* class for /sys/class/rc */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-02-21 18:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-21 18:20 [PATCH] avoid kernel oops when rmmod saa7134 Hussam Al-Tayeb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox