Files
android_kernel_xiaomi_sm8450/drivers/gpu/drm
John Bates fbb30168c7 drm/virtio: fix resource id creation race
The previous code was not thread safe and caused
undefined behavior from spurious duplicate resource IDs.
In this patch, an atomic_t is used instead. We no longer
see any duplicate IDs in tests with this change.

Fixes: 16065fcdd1 ("drm/virtio: do NOT reuse resource ids")
Signed-off-by: John Bates <jbates@chromium.org>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200220225319.45621-1-jbates@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2020-02-24 15:45:34 +01:00
..
2020-01-20 11:42:57 +10:00
2020-02-12 14:08:59 +01:00
2020-01-20 11:42:57 +10:00
2020-01-20 11:42:57 +10:00
2020-02-12 14:08:59 +01:00
2019-12-18 16:09:12 -05:00
2019-11-19 22:25:55 +01:00
2019-10-08 18:29:00 +02:00
2019-07-22 21:24:10 +02:00