public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Hussam Al-Tayeb <ht990332@gmail.com>
To: linux-media@vger.kernel.org
Subject: [PATCH] avoid kernel oops when rmmod saa7134
Date: Mon, 21 Feb 2011 20:20:26 +0200	[thread overview]
Message-ID: <1298312426.3152.8.camel@localhost.localdomain> (raw)

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


                 reply	other threads:[~2011-02-21 18:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1298312426.3152.8.camel@localhost.localdomain \
    --to=ht990332@gmail.com \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox