Commit 4cc2718
drm/i915/hdcp: fix connector refcounting
We acquire a connector reference before scheduling an HDCP prop work,
and expect the work function to release the reference.
However, if the work was already queued, it won't be queued multiple
times, and the reference is not dropped.
Release the reference immediately if the work was already queued.
Fixes: a6597fa ("drm/i915: Protect workers against disappearing connectors")
Cc: Sean Paul <[email protected]>
Cc: Suraj Kandpal <[email protected]>
Cc: Ville Syrjälä <[email protected]>
Cc: [email protected] # v5.10+
Reviewed-by: Suraj Kandpal <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Jani Nikula <[email protected]>
(cherry picked from commit abc0742)
Signed-off-by: Joonas Lahtinen <[email protected]>1 parent 8cf0b93 commit 4cc2718
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1094 | 1094 | | |
1095 | 1095 | | |
1096 | 1096 | | |
1097 | | - | |
| 1097 | + | |
| 1098 | + | |
1098 | 1099 | | |
1099 | 1100 | | |
1100 | 1101 | | |
| |||
2524 | 2525 | | |
2525 | 2526 | | |
2526 | 2527 | | |
2527 | | - | |
| 2528 | + | |
| 2529 | + | |
2528 | 2530 | | |
2529 | 2531 | | |
2530 | 2532 | | |
| |||
2541 | 2543 | | |
2542 | 2544 | | |
2543 | 2545 | | |
2544 | | - | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
2545 | 2549 | | |
2546 | 2550 | | |
2547 | 2551 | | |
| |||
0 commit comments