spi/imx: prevent NULL pointer dereference in spi_imx_probe()
authorLothar Waßmann <LW@KARO-electronics.de>
Tue, 3 Apr 2012 13:03:44 +0000 (15:03 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 11 Apr 2012 04:17:15 +0000 (22:17 -0600)
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: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>

No differences found