summaryrefslogtreecommitdiffstats
path: root/fs/kernfs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-01-17 08:58:58 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2019-01-27 08:47:42 -0800
commit4ea899ead2786a30aaa8181fefa81a3df4ad28f6 (patch)
treef748a160adb1441d69886c568849ab0145db0f89 /fs/kernfs
parent8e47a457321ca1a74ad194ab5dcbca764bc70731 (diff)
downloadlinux-4ea899ead2786a30aaa8181fefa81a3df4ad28f6.tar.bz2
iomap: fix a use after free in iomap_dio_rw
Introduce a local wait_for_completion variable to avoid an access to the potentially freed dio struture after dropping the last reference count. Also use the chance to document the completion behavior to make the refcounting clear to the reader of the code. Fixes: ff6a9292e6 ("iomap: implement direct I/O") Reported-by: Chandan Rajendra <chandan@linux.ibm.com> Reported-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: Chandan Rajendra <chandan@linux.ibm.com> Tested-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/kernfs')
0 files changed, 0 insertions, 0 deletions