Re: [PATCH v3] iio: ad_sigma_delta: Don't put SPI transfer buffer on the stack

2020-11-28 Thread Jonathan Cameron
On Tue, 24 Nov 2020 14:38:07 +0200 Alexandru Ardelean wrote: > From: Lars-Peter Clausen > > Use a heap allocated memory for the SPI transfer buffer. Using stack memory > can corrupt stack memory when using DMA on some systems. > > This change moves the buffer from the stack of the trigger hand

[PATCH v3] iio: ad_sigma_delta: Don't put SPI transfer buffer on the stack

2020-11-24 Thread Alexandru Ardelean
From: Lars-Peter Clausen Use a heap allocated memory for the SPI transfer buffer. Using stack memory can corrupt stack memory when using DMA on some systems. This change moves the buffer from the stack of the trigger handler call to the heap of the buffer of the state struct. The size increases