Sfoglia il codice sorgente

[media] tm6000: Fix mutex unbalance

Hi

Fix never unlocked mutex. No more crash after removing USB stick.

With my best regards, Dmitry.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Dmitri Belimov 14 anni fa
parent
commit
427aacfe1d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      drivers/staging/tm6000/tm6000-core.c

+ 1 - 1
drivers/staging/tm6000/tm6000-core.c

@@ -722,5 +722,5 @@ void tm6000_close_extension(struct tm6000_core *dev)
 				ops->fini(dev);
 				ops->fini(dev);
 		}
 		}
 	}
 	}
-	mutex_lock(&tm6000_devlist_mutex);
+	mutex_unlock(&tm6000_devlist_mutex);
 }
 }