[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <fd650699-87a9-acd8-543b-b86064f04b84@embeddedor.com>
Date: Wed, 22 Nov 2017 08:18:45 -0600
From: "Gustavo A. R. Silva" <garsilva@...eddedor.com>
To: "Martin K. Petersen" <martin.petersen@...cle.com>
Cc: Vinayak Holikatti <vinholikatti@...il.com>,
"James E.J. Bottomley" <jejb@...ux.vnet.ibm.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] scsi: ufs: ufshcd: fix potential NULL pointer dereference
in ufshcd_config_vreg
On 11/21/2017 10:01 PM, Martin K. Petersen wrote:
> Gustavo A.,
>
>> _vreg_ is being dereferenced before it is null checked, hence there is a
>> potential null pointer dereference.
>>
>> Fix this by moving the pointer dereference after _vreg_ has been null
>> checked.
> Applied to 4.15/scsi-fixes, thank you!
>
Glad to help. :)
Thanks
--
Gustavo A. R. Silva
Powered by blists - more mailing lists