Commit bd64240
drm/fb-helper: Fix a locking bug in an error path
The name of the function __drm_fb_helper_initial_config_and_unlock() and
also the comment above that function make it clear that all code paths
in this function should unlock fb_helper->lock before returning. Add a
mutex_unlock() call in the only code path where it is missing. This has
been detected by the Clang thread-safety analyzer.
Cc: Thomas Zimmermann <[email protected]>
Cc: Christian König <[email protected]> # radeon
Cc: Dmitry Baryshkov <[email protected]> # msm
Cc: Javier Martinez Canillas <[email protected]>
Fixes: 63c971a ("drm/fb-helper: Allocate and release fb_info in single place")
Signed-off-by: Bart Van Assche <[email protected]>
Signed-off-by: Thomas Zimmermann <[email protected]>
Reviewed-by: Thomas Zimmermann <[email protected]>
Link: https://patch.msgid.link/[email protected]1 parent 408df62 commit bd64240
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1626 | 1626 | | |
1627 | 1627 | | |
1628 | 1628 | | |
1629 | | - | |
| 1629 | + | |
| 1630 | + | |
1630 | 1631 | | |
| 1632 | + | |
1631 | 1633 | | |
1632 | 1634 | | |
1633 | 1635 | | |
| |||
0 commit comments