Skip to content
Commit 9dd2e4dd authored by Dave Stevenson's avatar Dave Stevenson Committed by Phil Elwell
Browse files

drm/panel/raspberrypi-touchscreen: Avoid NULL deref if not initialised



If a call to rpi_touchscreen_i2c_write from rpi_touchscreen_probe
fails before mipi_dsi_device_register_full is called, then
in trying to log the error message if uses ts->dsi->dev when
it is still NULL.

Use ts->i2c->dev instead, which is initialised earlier in probe.

Signed-off-by: default avatarDave Stevenson <dave.stevenson@raspberrypi.com>
parent a2b8b34d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment