diff options
author | Zhao Hongjiang <zhaohongjiang@huawei.com> | 2013-04-26 11:03:53 +0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-26 07:56:18 -0700 |
commit | 91d80a84bbc8f28375cca7e65ec666577b4209ad (patch) | |
tree | 9b3ace831ebff07b31384e8046f88f1c0399bd6c | |
parent | 697dfd884438058b15032b0169887c742704434a (diff) | |
download | linux-3.10-91d80a84bbc8f28375cca7e65ec666577b4209ad.tar.gz linux-3.10-91d80a84bbc8f28375cca7e65ec666577b4209ad.tar.bz2 linux-3.10-91d80a84bbc8f28375cca7e65ec666577b4209ad.zip |
aio: fix possible invalid memory access when DEBUG is enabled
dprintk() shouldn't access @ring after it's unmapped.
Signed-off-by: Zhao Hongjiang <zhaohongjiang@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/aio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1029,9 +1029,9 @@ static int aio_read_evt(struct kioctx *ioctx, struct io_event *ent) spin_unlock(&info->ring_lock); out: - kunmap_atomic(ring); dprintk("leaving aio_read_evt: %d h%lu t%lu\n", ret, (unsigned long)ring->head, (unsigned long)ring->tail); + kunmap_atomic(ring); return ret; } |