[lkml]   [2019]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] dma: dw-axi-dmac: fix null dereference when pointer first is null
On 08-05-19, 23:33, Colin King wrote:
> From: Colin Ian King <>
> In the unlikely event that axi_desc_get returns a null desc in the
> very first iteration of the while-loop the error exit path ends
> up calling axi_desc_put on a null pointer 'first' and this causes
> a null pointer dereference. Fix this by adding a null check on
> pointer 'first' before calling axi_desc_put.

Applied, thanks


 \ /
  Last update: 2019-05-21 06:58    [W:0.043 / U:8.768 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site