commit | 9846c67974d6af64f665707bb4f68ae458684faa | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Mon Jan 30 17:47:05 2017 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Jul 05 14:40:28 2017 +0200 |
tree | f153312f662b2cfedc6f43a2356243d2d28b54a4 | |
parent | c52829f60f5f6e228a70162717df199e874898a8 [diff] |
spi: fix device-node leaks commit 8324147f38019865b29d03baf28412d2ec0bd828 upstream. Make sure to release the device-node reference taken in of_register_spi_device() on errors and when deregistering the device. Fixes: 284b01897340 ("spi: Add OF binding support for SPI busses") Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>