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

Commit 9aec7640 authored by Ravi Aravamudhan's avatar Ravi Aravamudhan
Browse files

diag: Fix incorrect smd_info check



Diag driver checks if the smd_info object is NULL in an incorrect
way. This patch adds the proper check.

Change-Id: I8385b38005ddd32d13a2876f82ffa569d84ff882
Signed-off-by: default avatarRavi Aravamudhan <aravamud@codeaurora.org>
parent 70979abc
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));