aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <[email protected]>2018-11-11 11:15:21 +0000
committerLinus Torvalds <[email protected]>2018-11-16 17:35:09 +0000
commitc26b5aa8ef0d46035060fded475e6ab957b9f69f (patch)
tree469f981b657c1bc9ed005d96c97b8fb86b2fcb25 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
parentgfs2: Fix metadata read-ahead during truncate (2) (diff)
downloadkernel-c26b5aa8ef0d46035060fded475e6ab957b9f69f.tar.gz
kernel-c26b5aa8ef0d46035060fded475e6ab957b9f69f.zip
gfs2: Fix iomap buffer head reference counting bug
GFS2 passes the inode buffer head (dibh) from gfs2_iomap_begin to gfs2_iomap_end in iomap->private. It sets that private pointer in gfs2_iomap_get. Users of gfs2_iomap_get other than gfs2_iomap_begin would have to release iomap->private, but this isn't done correctly, leading to a leak of buffer head references. To fix this, move the code for setting iomap->private from gfs2_iomap_get to gfs2_iomap_begin. Fixes: 64bc06bb32 ("gfs2: iomap buffered write support") Cc: [email protected] # v4.19+ Signed-off-by: Andreas Gruenbacher <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h')
0 files changed, 0 insertions, 0 deletions