-
Notifications
You must be signed in to change notification settings - Fork 5.2k
drm: drm_crtc_legacy_gamma_set() underflow #4701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
#4682 hasn't been merged because the gamma issues don't appear to be resolved. I can cherry-pick the fixing patch, or you can submit it as a separate PR for expedited merging. |
I'll drop the gamma change and push a new PR as we may as well merge the other fixes that I'd put on that PR as well. |
Changes merged to 5.10. |
Fix with 95bb7ac Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
blob
is used after freed indrm_crtc_legacy_gamma_set
due to commit 4286cceTo reproduce
drm_crtc_legacy_gamma_set
is used without updating thegamma_lut
blob, there is an underflow.System
Branch: rpi-5.15.y
Logs
Additional context
This could be fixed by removing the extra
drm_property_blob_put(blob)
that was added in the mentioned commit. Although if it is important for that to be there, it might be enough to NULL outblob
after.The text was updated successfully, but these errors were encountered: