diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2021-12-06 10:11:23 +0100 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2021-12-16 12:29:22 +0100 |
commit | 55dc449a7c60d3df5a8f0b71bbae9d5173c864f5 (patch) | |
tree | 0229059aff4fcbe2196f73cd9797f01c926b4059 /drivers/scsi/esp_scsi.h | |
parent | d619f38c015fd7cf79af5cd34265d5b9247a00f0 (diff) |
drm/ast: Handle failed I2C initialization gracefully
I2C initialization is allowed to fail. In this case, create a connector
without DDC adapter. The current code would dereference a NULL pointer.
Reading the modes from the connector is supposed to work without I2C
adapter. Add the respective test.
v2:
* init edid to NULL to avoid uninitialized read (Dan)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20211206091125.29501-2-tzimmermann@suse.de
Diffstat (limited to 'drivers/scsi/esp_scsi.h')
0 files changed, 0 insertions, 0 deletions