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

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

Merge "scsi: ufs: Add back a missing sanity check to ufshcd_read_desc_param()"

parents 078af5cb 7ced4b97
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4569,7 +4569,7 @@ int ufshcd_read_desc_param(struct ufs_hba *hba,
	}

	/* Check whether we need temp memory */
	if (param_offset != 0) {
	if (param_offset != 0 || param_size < buff_len) {
		desc_buf = kzalloc(buff_len, GFP_KERNEL);
		if (!desc_buf)
			return -ENOMEM;