Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
char: xillybus: Fix trivial bug with mutex
commit c002f04 upstream. @unit_mutex protects @Unit from being freed, so obviously it should be released after @Unit is used, and not before. This is a follow-up to commit 282a4b7 ("char: xillybus: Prevent use-after-free due to race condition") which ensures, among others, the protection of @private_data after @unit_mutex has been released. Reported-by: Hyunwoo Kim <[email protected]> Signed-off-by: Eli Billauer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information