[PATCH v2] spi: bcm2835: Add spi_master_get() call to prevent use after free

Mark Brown broonie at kernel.org
Thu Aug 22 14:08:16 EDT 2013


On Thu, Aug 22, 2013 at 11:19:07PM +0800, Axel Lin wrote:
> The call to spi_unregister_master results in device memory being freed, it must
> no longer be accessed afterwards. Thus call spi_master_get() to get an extra
> reference to the device and call spi_master_put() only after the last access to
> device data.

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/20130822/bc5d5b41/attachment.sig>


More information about the linux-rpi-kernel mailing list