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:
5988c26
)
drm/panel: mantix: Don't dereference NULL mode
author
Guido Günther
<agx@sigxcpu.org>
Tue, 13 Oct 2020 10:32:46 +0000
(12:32 +0200)
committer
Sam Ravnborg
<sam@ravnborg.org>
Fri, 16 Oct 2020 14:24:25 +0000
(16:24 +0200)
Don't dereference mode which was just NULL checked.
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/659158549f3c6cc1c71ceed0943e760e861c1206.1602584953.git.agx@sigxcpu.org
drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
index 3482e28e30fc9ed3c68698891e6ffcf0929e9598..4a7fbf64bb7aa64e086030876e4140354fb29658 100644
(file)
--- a/
drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
+++ b/
drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
@@
-204,7
+204,7
@@
static int mantix_get_modes(struct drm_panel *panel,
if (!mode) {
dev_err(ctx->dev, "Failed to add mode %ux%u@%u\n",
default_mode.hdisplay, default_mode.vdisplay,
- drm_mode_vrefresh(mode));
+ drm_mode_vrefresh(
&default_
mode));
return -ENOMEM;
}