Re: [PATCH] ata: dwc_460ex: Avoid potential NULL pointer dereference

2019-03-24 Thread Jens Axboe
On 3/24/19 10:47 AM, Aditya Pakki wrote: > On 3/24/19 11:28 AM, Jens Axboe wrote: >> On 3/4/19 4:08 PM, Aditya Pakki wrote: >>> dma_async_tx_descriptor can contain a NULL variable and using >>> it in dmaengine_submit without checking can crash the process. >>> This patch avoids such a scenario. >>>

Re: [PATCH] ata: dwc_460ex: Avoid potential NULL pointer dereference

2019-03-24 Thread Aditya Pakki
On 3/24/19 11:28 AM, Jens Axboe wrote: > On 3/4/19 4:08 PM, Aditya Pakki wrote: >> dma_async_tx_descriptor can contain a NULL variable and using >> it in dmaengine_submit without checking can crash the process. >> This patch avoids such a scenario. >> >> Signed-off-by: Aditya Pakki >> --- >> driv

Re: [PATCH] ata: dwc_460ex: Avoid potential NULL pointer dereference

2019-03-24 Thread Jens Axboe
On 3/4/19 4:08 PM, Aditya Pakki wrote: > dma_async_tx_descriptor can contain a NULL variable and using > it in dmaengine_submit without checking can crash the process. > This patch avoids such a scenario. > > Signed-off-by: Aditya Pakki > --- > drivers/ata/sata_dwc_460ex.c | 6 -- > 1 file c

[PATCH] ata: dwc_460ex: Avoid potential NULL pointer dereference

2019-03-04 Thread Aditya Pakki
dma_async_tx_descriptor can contain a NULL variable and using it in dmaengine_submit without checking can crash the process. This patch avoids such a scenario. Signed-off-by: Aditya Pakki --- drivers/ata/sata_dwc_460ex.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/d