Skip to content

Commit

Permalink
[media] tm6000: Fix mutex unbalance
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitri Belimov authored and Mauro Carvalho Chehab committed Dec 29, 2010
1 parent aa777a8 commit 427aacf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/tm6000/tm6000-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,5 +722,5 @@ void tm6000_close_extension(struct tm6000_core *dev)
ops->fini(dev);
}
}
mutex_lock(&tm6000_devlist_mutex);
mutex_unlock(&tm6000_devlist_mutex);
}

0 comments on commit 427aacf

Please sign in to comment.