Pārlūkot izejas kodu

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

qctecmdr 4 gadi atpakaļ
vecāks
revīzija
56e07a9935
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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;
 }