projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8126a04
)
[PATCH] fbdev: Coverity Bug 90
author
Antonino A. Daplas
<adaplas@gmail.com>
Mon, 26 Jun 2006 07:26:44 +0000
(
00:26
-0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:31 +0000
(09:58 -0700)
It's a false positive, but let's suppress it anyway.
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/modedb.c
patch
|
blob
|
history
diff --git
a/drivers/video/modedb.c
b/drivers/video/modedb.c
index
1aa36d3
..
7e539b6
100644
(file)
--- a/
drivers/video/modedb.c
+++ b/
drivers/video/modedb.c
@@
-791,8
+791,9
@@
struct fb_videomode *fb_find_best_mode(struct fb_var_screeninfo *var,
if (diff > d) {
diff = d;
best = mode;
- } else if (diff == d && mode->refresh > best->refresh)
- best = mode;
+ } else if (diff == d && best &&
+ mode->refresh > best->refresh)
+ best = mode;
}
}
return best;