aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorDave Stevenson <[email protected]>2022-04-15 18:25:12 +0200
committerMaxime Ripard <[email protected]>2022-04-20 10:18:13 +0200
commitf92055ae0acb035891e988ce345d6b81a0316423 (patch)
treecc7ce4d2abb9cd85654d65c74fdd85951502e684 /lib/mpi/mpi-cmp.c
parentf8e6b7babfeb40987e946bc1427609a9976017fa (diff)
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. Fixes: 2f733d6194bd ("drm/panel: Add support for the Raspberry Pi 7" Touchscreen.") Signed-off-by: Dave Stevenson <[email protected]> Signed-off-by: Stefan Wahren <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions