drm/panel: mantix: Don't dereference NULL mode
authorGuido Günther <agx@sigxcpu.org>
Tue, 13 Oct 2020 10:32:46 +0000 (12:32 +0200)
committerGuido Günther <agx@sigxcpu.org>
Fri, 23 Oct 2020 08:05:06 +0000 (10:05 +0200)
commit938f324e7df25e89226c6fe137028af73cd6160b
tree65648a8554da2213878e9c474b233b024c0874b4
parent272d70895113ef00c03ab325787d159ee51718c8
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
drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c