Re: [PATCH] mmc: atmel: don't test host->data

2014-05-08 Thread Ulf Hansson
On 7 May 2014 16:43, Ludovic Desroches wrote: > On Tue, May 06, 2014 at 05:43:26PM +0200, Alexandre Belloni wrote: >> Found using smatch: >> drivers/mmc/host/atmel-mci.c:827 atmci_pdc_complete() warn: variable >> dereferenced before check 'host->data' (see line 807) >> >> Stop testing host->data

Re: [PATCH] mmc: atmel: don't test host-data

2014-05-08 Thread Ulf Hansson
On 7 May 2014 16:43, Ludovic Desroches ludovic.desroc...@atmel.com wrote: On Tue, May 06, 2014 at 05:43:26PM +0200, Alexandre Belloni wrote: Found using smatch: drivers/mmc/host/atmel-mci.c:827 atmci_pdc_complete() warn: variable dereferenced before check 'host-data' (see line 807) Stop

Re: [PATCH] mmc: atmel: don't test host->data

2014-05-07 Thread Ludovic Desroches
On Tue, May 06, 2014 at 05:43:26PM +0200, Alexandre Belloni wrote: > Found using smatch: > drivers/mmc/host/atmel-mci.c:827 atmci_pdc_complete() warn: variable > dereferenced before check 'host->data' (see line 807) > > Stop testing host->data as it is not NULL at that point. I agree > >

Re: [PATCH] mmc: atmel: don't test host-data

2014-05-07 Thread Ludovic Desroches
On Tue, May 06, 2014 at 05:43:26PM +0200, Alexandre Belloni wrote: Found using smatch: drivers/mmc/host/atmel-mci.c:827 atmci_pdc_complete() warn: variable dereferenced before check 'host-data' (see line 807) Stop testing host-data as it is not NULL at that point. I agree Signed-off-by:

[PATCH] mmc: atmel: don't test host->data

2014-05-06 Thread Alexandre Belloni
Found using smatch: drivers/mmc/host/atmel-mci.c:827 atmci_pdc_complete() warn: variable dereferenced before check 'host->data' (see line 807) Stop testing host->data as it is not NULL at that point. Signed-off-by: Alexandre Belloni --- drivers/mmc/host/atmel-mci.c | 13 +++-- 1 file

[PATCH] mmc: atmel: don't test host-data

2014-05-06 Thread Alexandre Belloni
Found using smatch: drivers/mmc/host/atmel-mci.c:827 atmci_pdc_complete() warn: variable dereferenced before check 'host-data' (see line 807) Stop testing host-data as it is not NULL at that point. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com ---