Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=48200baeab95fd39a7f4c4f3536c7142a64ac335
Commit:     48200baeab95fd39a7f4c4f3536c7142a64ac335
Parent:     4730d3af625b532e3df5f091b5c8edb08f512fbf
Author:     Steven Toth <[EMAIL PROTECTED]>
AuthorDate: Thu Sep 6 22:48:35 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Sep 14 13:13:42 2007 -0300

    V4L/DVB (6188): Avoid a NULL pointer dereference during mpeg_open()
    
    Bug: With a hardware encoder board installed as cx88[1] and a
    non-encoder boards installed as cx88[0], an OOPS is generated
    during cx8802_get_device() called from mpeg_open().
    
    Signed-off-by: Steven Toth <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/cx88/cx88-mpeg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/cx88/cx88-mpeg.c 
b/drivers/media/video/cx88/cx88-mpeg.c
index 317a2a3..da7a6b5 100644
--- a/drivers/media/video/cx88/cx88-mpeg.c
+++ b/drivers/media/video/cx88/cx88-mpeg.c
@@ -580,7 +580,7 @@ struct cx8802_dev * cx8802_get_device(struct inode *inode)
 
        list_for_each(list,&cx8802_devlist) {
                h = list_entry(list, struct cx8802_dev, devlist);
-               if (h->mpeg_dev->minor == minor)
+               if (h->mpeg_dev && h->mpeg_dev->minor == minor)
                        return h;
        }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to