diff options
author | Guido Günther <agx@sigxcpu.org> | 2020-10-13 12:32:46 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2020-10-23 10:05:06 +0200 |
commit | 938f324e7df25e89226c6fe137028af73cd6160b (patch) | |
tree | 65648a8554da2213878e9c474b233b024c0874b4 /drivers | |
parent | 272d70895113ef00c03ab325787d159ee51718c8 (diff) |
drm/panel: mantix: Don't dereference NULL mode
Don't dereference mode which was just NULL checked.
Fixes: 72967d5616d3 ("drm/panel: Add panel driver for the Mantix MLAF057WE51-X DSI panel")
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>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/659158549f3c6cc1c71ceed0943e760e861c1206.1602584953.git.agx@sigxcpu.org
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c | 2 |
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; } |