aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
diff options
context:
space:
mode:
authorMarc Dionne <[email protected]>2024-01-29 09:49:18 +0000
committerChristian Brauner <[email protected]>2024-01-29 14:53:18 +0100
commit2147caaac7349698f2a392c5e2911a6861a09650 (patch)
treed59908af50e08f17527b33bac0f60c4850df439f /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
parent41bccc98fb7931d63d03f326a746ac4d429c1dd3 (diff)
netfs: Fix i_dio_count leak on DIO read past i_size
If netfs_begin_read gets a NETFS_DIO_READ request that begins past i_size, it won't perform any i/o and just return 0. This will leak an increment to i_dio_count that is done at the top of the function. This can cause subsequent buffered read requests to block indefinitely, waiting for a non existing dio operation to complete. Add a inode_dio_end() for the NETFS_DIO_READ case, before returning. Signed-off-by: Marc Dionne <[email protected]> Signed-off-by: David Howells <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Jeff Layton <[email protected]> cc: Jeff Layton <[email protected]> cc: <[email protected]> cc: <[email protected]> cc: <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions