spi: s3c64xx: potential oops on probe error
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 13 Jan 2017 07:42:53 +0000 (10:42 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 17 Jan 2017 17:58:51 +0000 (17:58 +0000)
commit72bc7ae0633e2b580217d254114ac6650380b7f6
tree123cbc06ba55dbe34bf0ea7ea6c16f788c082720
parent3d63a47a380a873408dad10ca62bd8299b2208f1
spi: s3c64xx: potential oops on probe error

We accidentally mixed up freeing the rx and tx channels which would a
leak and an oops.

Fixes: 3d63a47a380a ("spi: s3c64xx: Don't request/release DMA channels for each SPI transfer")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-s3c64xx.c