[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <yq11r1m21z8.fsf@ca-mkp.ca.oracle.com>
Date: Wed, 05 Jan 2022 00:20:02 -0500
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Jiasheng Jiang <jiasheng@...as.ac.cn>
Cc: skashyap@...vell.com, jhasan@...vell.com,
GR-QLogic-Storage-Upstream@...vell.com, jejb@...ux.ibm.com,
martin.petersen@...cle.com, linux@...linux.org.uk,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org
Subject: Re: [PATCH] scsi: qedf: potential dereference of null pointer
Jiasheng,
> The return value of dma_alloc_coherent() needs to be checked.
> To avoid use of null pointer in case of the failure of alloc.
Applied to 5.17/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists