summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2020-10-13 13:32:46 +0300
committerSam Ravnborg <sam@ravnborg.org>2020-10-16 17:24:25 +0300
commitf41b019aa5e05f8172db2e9396b5c2d2602305e2 (patch)
tree86060c0441a516ca623af086120cc29491fa2548 /drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
parent5988c2695f4074b44049cd77c4482c0748a8d632 (diff)
downloadlinux-f41b019aa5e05f8172db2e9396b5c2d2602305e2.tar.xz
drm/panel: mantix: Don't dereference NULL mode
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
Diffstat (limited to 'drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c')
-rw-r--r--drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
index 3482e28e30fc..4a7fbf64bb7a 100644
--- 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;
}