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

Commit c8fe13d6 authored by Jeff Johnson's avatar Jeff Johnson
Browse files

wcnss: Fix mismatch between format and argument in pr_err()



Static source analysis identified an instance where an incorrect
format string was used to output a size_t value, so fix the format.

Change-Id: Ibe0f2553d9b10d16b07854d7ddee229ea29ed4c9
CRs-fixed: 575729
Signed-off-by: default avatarJeff Johnson <jjohnson@codeaurora.org>
parent cb544cb0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2110,7 +2110,7 @@ static ssize_t wcnss_wlan_write(struct file *fp, const char __user

	if ((UINT32_MAX - count < penv->user_cal_rcvd) ||
	     MAX_CALIBRATED_DATA_SIZE < count + penv->user_cal_rcvd) {
		pr_err(DEVICE " invalid size to write %d\n", count +
		pr_err(DEVICE " invalid size to write %zu\n", count +
				penv->user_cal_rcvd);
		rc = -ENOMEM;
		goto exit;