Re: [RFC PATCH] spi/bcm63xx: Ensure that memory is freed only after it is no longer used

2012-08-13 Thread Mark Brown
On Fri, Aug 10, 2012 at 01:56:27PM -0700, Guenter Roeck wrote: > The call to spi_unregister_master() in the device remove function frees device > memory, and with it any device local data. However, device local data is still > accessed after the call to spi_unregister_master(). Applied, thanks.

Re: [RFC PATCH] spi/bcm63xx: Ensure that memory is freed only after it is no longer used

2012-08-13 Thread Mark Brown
On Fri, Aug 10, 2012 at 01:56:27PM -0700, Guenter Roeck wrote: The call to spi_unregister_master() in the device remove function frees device memory, and with it any device local data. However, device local data is still accessed after the call to spi_unregister_master(). Applied, thanks. --

[RFC PATCH] spi/bcm63xx: Ensure that memory is freed only after it is no longer used

2012-08-10 Thread Guenter Roeck
The call to spi_unregister_master() in the device remove function frees device memory, and with it any device local data. However, device local data is still accessed after the call to spi_unregister_master(). Acquire a reference to the SPI device and release it after cleanup is complete to solve

[RFC PATCH] spi/bcm63xx: Ensure that memory is freed only after it is no longer used

2012-08-10 Thread Guenter Roeck
The call to spi_unregister_master() in the device remove function frees device memory, and with it any device local data. However, device local data is still accessed after the call to spi_unregister_master(). Acquire a reference to the SPI device and release it after cleanup is complete to solve