Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1652777
| From | "Gustavo A. R. Silva" <garsilva@embeddedor.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] spi: add null check before pointer dereference |
| Date | 2017-05-30 04:40 +0200 |
| Message-ID | <tMFeF-TW-1@gated-at.bofh.it> (permalink) |
| References | <tMk0x-2Jc-3@gated-at.bofh.it> <tK5S1-4cN-1@gated-at.bofh.it> <tMk0x-2Jc-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Andi,
Quoting Andi Shyti <andi.shyti@samsung.com>:
> Hi Gustavo,
>
>> desc = dmaengine_prep_slave_sg(dma->ch, sgt->sgl, sgt->nents,
>> dma->direction, DMA_PREP_INTERRUPT);
>>
>> + if (!desc) {
>> + dev_err(&sdd->master->dev,
>> + "%s:dmaengine_prep_slave_sg Failed\n", __func__);
>> + return;
>> + }
>> +
>
> I'm sorry, I would nack this patch for now. There was a smilar I
> sent before, but, as Krzysztof said, this needs more testing and
> a proper solution.
>
Yeah, I get it.
> That's anyway in my todo list.
>
That's great.
> Thanks,
> Andi
Thanks!
--
Gustavo A. R. Silva
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH] spi: add null check before pointer dereference Andi Shyti <andi.shyti@samsung.com> - 2017-05-29 06:00 +0200 Re: [PATCH] spi: add null check before pointer dereference "Gustavo A. R. Silva" <garsilva@embeddedor.com> - 2017-05-30 04:40 +0200
csiph-web