Skip to content
Commit 5c3ef397 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Tejun Heo
Browse files

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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 6929ef38
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment