mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
Merge "scsi: ufshcd-qti: Fix null pointer check"
This commit is contained in:
commit
5212d6d3b5
1 changed files with 2 additions and 0 deletions
|
|
@ -7530,6 +7530,8 @@ static u32 ufshcd_get_max_icc_level(int sup_curr_uA, u32 start_scan, char *buff)
|
|||
len = start_scan;
|
||||
|
||||
pd = kmalloc_array(len, sizeof(*pd), GFP_KERNEL);
|
||||
if (!pd)
|
||||
return 0;
|
||||
memcpy(pd, buff, len);
|
||||
|
||||
for (i = start_scan; i >= 0; i--) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue