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

Commit 009db335 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "diag: Fix incorrect smd_info check"

parents 6bb55af0 9aec7640
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -349,7 +349,7 @@ void diag_send_diag_mode_update_by_smd(struct diag_smd_info *smd_info,
	int wr_size = -ENOMEM, retry_count = 0, timer;
	struct diag_smd_info *data = NULL;

	if (!smd_info && smd_info->type != SMD_CNTL_TYPE) {
	if (!smd_info || smd_info->type != SMD_CNTL_TYPE) {
		pr_err("diag: In %s, invalid channel info, smd_info: %p type: %d\n",
					__func__, smd_info,
					((smd_info) ? smd_info->type : -1));