Commit 978ca99
drm/msm/dpu: Fix uninitialized variable
There is a possibility for an uninitialized *ret* variable to be
returned in some code paths.
Fix this by initializing *ret* to 0.
Addresses-Coverity-ID: 1642546 ("Uninitialized scalar variable")
Fixes: 774bcfb ("drm/msm/dpu: add support for virtual planes")
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/636201/
Link: https://lore.kernel.org/r/20250209-dpu-v2-1-114dfd4ebefd@ethancedwards.com
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>1 parent df9cf85 commit 978ca99
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1164 | 1164 | | |
1165 | 1165 | | |
1166 | 1166 | | |
1167 | | - | |
1168 | 1167 | | |
1169 | 1168 | | |
1170 | 1169 | | |
| |||
1173 | 1172 | | |
1174 | 1173 | | |
1175 | 1174 | | |
1176 | | - | |
| 1175 | + | |
1177 | 1176 | | |
1178 | 1177 | | |
1179 | | - | |
| 1178 | + | |
1180 | 1179 | | |
1181 | 1180 | | |
1182 | | - | |
| 1181 | + | |
1183 | 1182 | | |
1184 | 1183 | | |
1185 | 1184 | | |
| |||
0 commit comments