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

Commit e9b2e493 authored by Konstantin Dorfman's avatar Konstantin Dorfman
Browse files

soc:qcom:spcom: fix error code on create existing channel



This change fixes the error code, on an attempt to create a channel
that already exists.

Change-Id: Ic72ef0a9498aa91b6c495512144ce27cde40658c
Signed-off-by: default avatarKonstantin Dorfman <kdorfman@codeaurora.org>
parent 48e0d554
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1866,7 +1866,7 @@ static int spcom_create_channel_chardev(const char *name, bool is_sharable)
	ch = spcom_find_channel_by_name(name);
	if (ch) {
		pr_err("channel [%s] already exist\n", name);
		return -EINVAL;
		return -EBUSY;
	}

	ch = spcom_find_channel_by_name(""); /* find reserved channel */