Skip to content
Commit 39ec0d38 authored by Lothar Waßmann's avatar Lothar Waßmann Committed by Grant Likely
Browse files

spi/imx: prevent NULL pointer dereference in spi_imx_probe()



When no platform_data is present and either 'spi-num-chipselects' is
not defined in the DT or 'cs-gpios' has less entries than
'spi-num-chipselects' specifies, the NULL platform_data pointer is
being dereferenced.

Signed-off-by: default avatarLothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent cc4d22ae
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