2017-11-22 14:19:47

by Gustavo A. R. Silva

[permalink] [raw]
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

From 1584737393419627170@xxx Wed Nov 22 04:02:30 +0000 2017
X-GM-THRID: 1584594679115361987
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread