[lkml]   [2017]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [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. :)

Gustavo A. R. Silva

 \ /
  Last update: 2017-11-22 15:19    [W:0.046 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site