Commit a3d2f88
input: goodix: Fix wrongly placed mutex unlock
Xiaomeme added a condition that can keep on iteration over modules
however left mutex unlock before it. This can cause premature mutex
unlock and double-unlock afterwards which leads to undefined behavior.
Mutex unlock should be called only when taking out path.
Signed-off-by: Andrzej Perczak <linux@andrzejperczak.com>
Signed-off-by: onettboots <blackcocopet@gmail.com>1 parent 9d57ea6 commit a3d2f88
1 file changed
Lines changed: 4 additions & 3 deletions
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1757 | 1757 | | |
1758 | 1758 | | |
1759 | 1759 | | |
1760 | | - | |
1761 | 1760 | | |
1762 | 1761 | | |
1763 | | - | |
| 1762 | + | |
1764 | 1763 | | |
1765 | | - | |
| 1764 | + | |
| 1765 | + | |
1766 | 1766 | | |
| 1767 | + | |
1767 | 1768 | | |
1768 | 1769 | | |
1769 | 1770 | | |
| |||
0 commit comments