[PATCH v2] spi: bcm2835: Add spi_master_get() call to prevent use after free
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: Digital signature
More information about the linux-rpi-kernel