]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi/mpc83xx: fix NULL pdata dereference bug
authorKenth Eriksson <kenth.eriksson@transmode.com>
Fri, 30 Mar 2012 15:05:30 +0000 (17:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2012 07:15:40 +0000 (15:15 +0800)
commit947e94b2b68de55880b4a84c07d6af0d465c25f6
tree8b6f4a2b7483a4f0a9399bbb8ba444fce0f0ada7
parentea15dd3cd4a8f3b097cccf7739edde04b69e0a03
spi/mpc83xx: fix NULL pdata dereference bug

commit 5039a86973cd35bdb2f64d28ee12f13fe2bb5a4c upstream.

Commit 178db7d3, "spi: Fix device unregistration when unregistering
the bus master", changed device initialization to be children of the
bus master, not children of the bus masters parent device. The pdata
pointer used in fsl_spi_chipselect must updated to reflect the changed
initialization.

Signed-off-by: Kenth Eriksson <kenth.eriksson@transmode.com>
Acked-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi-fsl-spi.c