Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Zhao Hongjiang and committed by
Linus Torvalds
91d80a84 697dfd88

+1 -1
+1 -1
fs/aio.c
··· 1029 1029 spin_unlock(&info->ring_lock); 1030 1030 1031 1031 out: 1032 - kunmap_atomic(ring); 1033 1032 dprintk("leaving aio_read_evt: %d h%lu t%lu\n", ret, 1034 1033 (unsigned long)ring->head, (unsigned long)ring->tail); 1034 + kunmap_atomic(ring); 1035 1035 return ret; 1036 1036 } 1037 1037