diff options
author | Julia Zhang <[email protected]> | 2024-06-03 19:31:09 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2024-06-25 14:22:08 -0400 |
commit | bcfa48ff785bd121316592b131ff6531e3e696bb (patch) | |
tree | 268cc0d0d4f1e007b4bf3f7731f0f096c7623ee1 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 2ec6c7f802332d1eff16f03e7c757f1543ee1183 (diff) |
drm/amdgpu: avoid using null object of framebuffer
Instead of using state->fb->obj[0] directly, get object from framebuffer
by calling drm_gem_fb_get_obj() and return error code when object is
null to avoid using null object of framebuffer.
Reported-by: Fusheng Huang <[email protected]>
Signed-off-by: Julia Zhang <[email protected]>
Reviewed-by: Huang Rui <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions