summaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-scsi.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2016-11-29 12:13:38 +0100
committerTejun Heo <tj@kernel.org>2016-11-29 17:35:06 +0100
commit5c3ef39738f74a3759918cc1a1ad099504f9d1b7 (patch)
treea29d2bee4b6726435e743819dc4ef4b04f32d652 /drivers/ata/libata-scsi.c
parentahci: always fall back to single-MSI mode (diff)
downloadlinux-5c3ef39738f74a3759918cc1a1ad099504f9d1b7.tar.xz
linux-5c3ef39738f74a3759918cc1a1ad099504f9d1b7.zip
ata: sata_mv: check for errors when parsing nr-ports from dt
If the nr-ports property is missing ata_host_alloc_pinfo is called with n_ports = 0. This results in host->ports[0] = NULL which later makes mv_init_host() oops when dereferencing this pointer. Instead be a bit more cooperative and fail the probing with an error message. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions