Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5212d6d3 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: ufshcd-qti: Fix null pointer check"

parents eeea05d3 83094b23
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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--) {