Skip to content
Commit 9b43d48b authored by Dave Stevenson's avatar Dave Stevenson Committed by Dom Cobley
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 da0cb631
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment