Commit 282864c
committed
drm/panthor: Fix access to uninitialized variable in tick_ctx_cleanup()
The group variable can't be used to retrieve ptdev in our second loop,
because it points to the previously iterated list_head, not a valid
group. Get the ptdev object from the scheduler instead.
Cc: <[email protected]>
Fixes: d72f049 ("drm/panthor: Allow driver compilation")
Reported-by: kernel test robot <[email protected]>
Reported-by: Julia Lawall <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]/
Signed-off-by: Boris Brezillon <[email protected]>
Reviewed-by: Liviu Dudau <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]1 parent fa998a9 commit 282864c
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2046 | 2046 | | |
2047 | 2047 | | |
2048 | 2048 | | |
| 2049 | + | |
2049 | 2050 | | |
2050 | 2051 | | |
2051 | 2052 | | |
| |||
2054 | 2055 | | |
2055 | 2056 | | |
2056 | 2057 | | |
2057 | | - | |
| 2058 | + | |
2058 | 2059 | | |
2059 | 2060 | | |
2060 | 2061 | | |
| |||
2077 | 2078 | | |
2078 | 2079 | | |
2079 | 2080 | | |
2080 | | - | |
| 2081 | + | |
2081 | 2082 | | |
2082 | 2083 | | |
2083 | 2084 | | |
| |||
0 commit comments