diff options
author | Christoph Hellwig <[email protected]> | 2019-01-17 08:58:58 -0800 |
---|---|---|
committer | Darrick J. Wong <[email protected]> | 2019-01-27 08:47:42 -0800 |
commit | 4ea899ead2786a30aaa8181fefa81a3df4ad28f6 (patch) | |
tree | f748a160adb1441d69886c568849ab0145db0f89 /tools/perf/util | |
parent | 8e47a457321ca1a74ad194ab5dcbca764bc70731 (diff) |
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 <[email protected]>
Reported-by: Darrick J. Wong <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Tested-by: Chandan Rajendra <[email protected]>
Tested-by: Darrick J. Wong <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'tools/perf/util')
0 files changed, 0 insertions, 0 deletions