Explorar o código

Merge "soc: swr-mstr-ctrl: fix device linked list corruption issue"

qctecmdr %!s(int64=4) %!d(string=hai) anos
pai
achega
56e07a9935
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      soc/soundwire.c

+ 1 - 0
soc/soundwire.c

@@ -141,6 +141,7 @@ err_out:
 	dev_dbg(&master->dev, "Failed to register swr device %s at 0x%lx %d\n",
 		swr->name, swr->addr, result);
 	swr_master_put(master);
+	list_del_init(&swr->dev_list);	
 	kfree(swr);
 	return NULL;
 }