[PATCH] spi: bcm2835: fix reference leak to master in bcm2835_spi_remove()

Mark Brown broonie at kernel.org
Fri Nov 15 02:23:51 PST 2013

On Fri, Nov 15, 2013 at 03:43:27PM +0800, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
> Once a spi_master_get() call succeeds, we need an additional
> spi_master_put() call to free the memory, otherwise we will
> leak a reference to master. Fix by removing the unnecessary
> spi_master_get() call.

Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-rpi-kernel/attachments/20131115/e1a99a8f/attachment.sig>

More information about the linux-rpi-kernel mailing list