diff options
author | Zack Rusin <zack.rusin@broadcom.com> | 2024-07-22 14:41:14 -0400 |
---|---|---|
committer | Zack Rusin <zack.rusin@broadcom.com> | 2024-07-24 22:21:52 -0400 |
commit | 09f34a00272d2311f6e5d64ed8ad824ef78f7487 (patch) | |
tree | 35f14d24ed1d5a74c13474884465648b3476513a /lib/crypto/mpi/mpi-internal.h | |
parent | e58337100721f3cc0c7424a18730e4f39844934f (diff) |
drm/vmwgfx: Make sure the screen surface is ref counted
Fix races issues in virtual crc generation by making sure the surface
the code uses for crc computation is properly ref counted.
Crc generation was trying to be too clever by allowing the surfaces
to go in and out of scope, with the hope of always having some kind
of screen present. That's not always the code, in particular during
atomic disable, so to make sure the surface, when present, is not
being actively destroyed at the same time, hold a reference to it.
Signed-off-by: Zack Rusin <zack.rusin@broadcom.com>
Fixes: 7b0062036c3b ("drm/vmwgfx: Implement virtual crc generation")
Cc: Zack Rusin <zack.rusin@broadcom.com>
Cc: Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Maaz Mombasawala <maaz.mombasawala@broadcom.com>
Reviewed-by: Martin Krastev <martin.krastev@broadcom.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240722184313.181318-3-zack.rusin@broadcom.com
Diffstat (limited to 'lib/crypto/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions