aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorTrent Piepho <[email protected]>2017-10-31 19:49:05 +0000
committerMark Brown <[email protected]>2017-11-10 21:28:10 +0000
commit4e21791e741c7c1b962c4a8327529f52310b9aac (patch)
treec0d85042521e6549a57bb189d522177e43f495a7 /net/unix/af_unix.c
parentspi: imx: GPIO based chip selects should not be required (diff)
downloadkernel-4e21791e741c7c1b962c4a8327529f52310b9aac.tar.gz
kernel-4e21791e741c7c1b962c4a8327529f52310b9aac.zip
spi: imx: Fix failure path leak on GPIO request error
If the code that requests any chip select GPIOs fails, the cleanup of spi_bitbang_start() by calling spi_bitbang_stop() is not done. Add this to the failure path. Note that spi_bitbang_start() has to be called before requesting GPIOs because the GPIO data in the spi master is populated when the master is registed, and that doesn't happen until spi_bitbang_start() is called. CC: Shawn Guo <[email protected]> CC: Sascha Hauer <[email protected]> CC: Fabio Estevam <[email protected]> CC: Mark Brown <[email protected]> CC: Oleksij Rempel <[email protected]> Signed-off-by: Trent Piepho <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions