diff mbox

avoid kernel oops when rmmod saa7134

Message ID 1298312426.3152.8.camel@localhost.localdomain (mailing list archive)
State Accepted
Headers show

Commit Message

Hussam Al-Tayeb Feb. 21, 2011, 6:20 p.m. UTC
None
diff mbox

Patch

--- 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 */