projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4730d3a
)
V4L/DVB (6188): Avoid a NULL pointer dereference during mpeg_open()
author
Steven Toth
<
[email protected]
>
Fri, 7 Sep 2007 01:48:35 +0000
(22:48 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Fri, 14 Sep 2007 16:13:42 +0000
(13:13 -0300)
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
patch
|
blob
|
history
diff --git
a/drivers/media/video/cx88/cx88-mpeg.c
b/drivers/media/video/cx88/cx88-mpeg.c
index 317a2a3f9cc1bdd59d923306febe9d901e3742f6..da7a6b591a674e02187533e1b74f8fa52ba94e18 100644
(file)
--- 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;
}