Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1652226 > unrolled thread

Re: [PATCH] spi: add null check before pointer dereference

Started byAndi Shyti <andi.shyti@samsung.com>
First post2017-05-29 06:00 +0200
Last post2017-05-30 04:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

#1652226 — Re: [PATCH] spi: add null check before pointer dereference

FromAndi Shyti <andi.shyti@samsung.com>
Date2017-05-29 06:00 +0200
SubjectRe: [PATCH] spi: add null check before pointer dereference
Message-ID<tMk0x-2Jc-1@gated-at.bofh.it>
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.

That's anyway in my todo list.

Thanks,
Andi

[toc] | [next] | [standalone]


#1652777

From"Gustavo A. R. Silva" <garsilva@embeddedor.com>
Date2017-05-30 04:40 +0200
Message-ID<tMFeF-TW-1@gated-at.bofh.it>
In reply to#1652226
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web