commit | 5c3ef39738f74a3759918cc1a1ad099504f9d1b7 | [log] [tgz] |
---|---|---|
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | Tue Nov 29 12:13:38 2016 +0100 |
committer | Tejun Heo <tj@kernel.org> | Tue Nov 29 11:35:06 2016 -0500 |
tree | a29d2bee4b6726435e743819dc4ef4b04f32d652 | |
parent | 6929ef385e09c0065b87fda3e7b872a5070ac783 [diff] |
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>