aio: fix possible invalid memory access when DEBUG is enabled
authorZhao Hongjiang <zhaohongjiang@huawei.com>
Fri, 26 Apr 2013 03:03:53 +0000 (11:03 +0800)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 13 May 2013 14:02:09 +0000 (15:02 +0100)
commitbf0f91c05b5abf5fafa0b1118db4c33fc011fcd1
tree216cdb8259ca19182851e1f3325971aa7d09c2e3
parent419f4ba0f032c8d906153d24e017f4bee6df26f5
aio: fix possible invalid memory access when DEBUG is enabled

commit 91d80a84bbc8f28375cca7e65ec666577b4209ad upstream.

dprintk() shouldn't access @ring after it's unmapped.

Signed-off-by: Zhao Hongjiang <zhaohongjiang@huawei.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[bwh: Backported to 3.2: keep the second argument to kunmap_atomic()]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/aio.c