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

Commit bde15b01 authored by Sreelakshmi Gownipalli's avatar Sreelakshmi Gownipalli Committed by Gerrit - the friendly Code Review server
Browse files

diag: Unlock the mask info mutex in error case



Unlock the log mask info mutex in error case when the mask is
not still set.

Change-Id: I92d53cc5c7a425d945f80c70170810f6125d9d95
Signed-off-by: default avatarSreelakshmi Gownipalli <sgownipa@codeaurora.org>
parent 4cc8814f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -226,6 +226,7 @@ static void diag_send_log_mask_update(uint8_t peripheral,
			pr_debug("diag: In %s, invalid log_mask status\n",
				__func__);
			mutex_unlock(&mask->lock);
			mutex_unlock(&mask_info->lock);
			return;
		}
		if (sub_index >= 0 && preset_id > 0)