Re: [PATCH 2/2] mci: arasan: configure data transfer only if we actually have data

2021-05-25 Thread Sascha Hauer
On Wed, May 19, 2021 at 09:38:55AM +0200, Michael Tretter wrote: > If we don't have any data to transfer, we must not set the block size > and block count. > > If data is NULL, accessing data to get the block size and block count is > a NULL pointer dereference. > > Signed-off-by: Michael

[PATCH 2/2] mci: arasan: configure data transfer only if we actually have data

2021-05-19 Thread Michael Tretter
If we don't have any data to transfer, we must not set the block size and block count. If data is NULL, accessing data to get the block size and block count is a NULL pointer dereference. Signed-off-by: Michael Tretter --- drivers/mci/arasan-sdhci.c | 10 ++ 1 file changed, 6