diff options
| author | Neil Roberts <[email protected]> | 2021-02-23 15:51:24 +0000 |
|---|---|---|
| committer | Maarten Lankhorst <[email protected]> | 2021-03-11 10:11:33 +0000 |
| commit | d611b4a0907cece060699f2fd347c492451cd2aa (patch) | |
| tree | 62bb4333a8f34a9cb3e93c492561f5f4327d2f6c /drivers/gpu/drm/amd/amdgpu/amdgpu_test.c | |
| parent | qxl: Fix uninitialised struct field head.surface_id (diff) | |
| download | kernel-d611b4a0907cece060699f2fd347c492451cd2aa.tar.gz kernel-d611b4a0907cece060699f2fd347c492451cd2aa.zip | |
drm/shmem-helper: Check for purged buffers in fault handler
When a buffer is madvised as not needed and then purged, any attempts to
access the buffer from user-space should cause a bus fault. This patch
adds a check for that.
Cc: [email protected]
Fixes: 17acb9f35ed7 ("drm/shmem: Add madvise state and purge helpers")
Signed-off-by: Neil Roberts <[email protected]>
Reviewed-by: Steven Price <[email protected]>
Signed-off-by: Steven Price <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Maarten Lankhorst <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_test.c')
0 files changed, 0 insertions, 0 deletions
