drm/edid: don't return stack garbage from supports_rb
Subsystems (2)
PATCH 1/1 drm/edid: don't return stack garbage from supports_rb
We need to initialize this to false, because the is_rb callback only ever sets it to true.
Noticed while reading through the code.
Cc Adam Jackson <[email protected]>
Signed-off-by Daniel Vetter <[email protected]>
--- drivers/gpu/drm/drm_edid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_edid.c +1 -1
@@ -603,7 +603,7 @@ static bool drm_monitor_supports_rb(struct edid *edid) {if (edid->revision >=4 ) { -bool ret; +bool ret = false;drm_for_each_detailed_block ((u8 *)edid, is_rb, &ret);return ret; }
Signature · 1 line
1.7.10
Quoted 8 lines · Daniel Vetter
We need to initialize this to false, because the
is_rbcallback only ever sets it to true.Noticed while reading through the code.
Cc Adam Jackson <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Reviewed-by Adam Jackson <[email protected]>
- ajax
Quoted 8 lines · Daniel Vetter
We need to initialize this to false, because the
is_rbcallback only ever sets it to true.Noticed while reading through the code.
Cc Adam Jackson <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Reviewed-by Adam Jackson <[email protected]>
- ajax
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel