Эх сурвалжийг харах

spu-kernel: spcom: failure when shareable channel already exists

Return 0 instead of -EALREADY when trying to create a shareable
channel that already exists.

Change-Id: Iaada1a714aabd9eded5aacd95e1282644336c836
Signed-off-by: Benjamin Grimberg <[email protected]>
Benjamin Grimberg 2 жил өмнө
parent
commit
079f437fac
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      drivers/spcom.c

+ 1 - 1
drivers/spcom.c

@@ -2504,7 +2504,7 @@ static int spcom_create_channel(const char *ch_name, bool is_sharable)
 		/* Channel is already created as sharable */
 		if (spcom_dev->channels[i].is_sharable) {
 			spcom_pr_err("already created channel as sharable\n");
-			return -EALREADY;
+			return 0;
 		}
 
 		/* Cannot create sharable channel if channel already created */