]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
AIO: fix cleanup in io_submit_one(...)
authorYan Zheng <yanzheng@21cn.com>
Mon, 8 Oct 2007 19:16:20 +0000 (12:16 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 8 Oct 2007 19:58:14 +0000 (12:58 -0700)
commit87e2831c3fa39cbf6f7ab676bb5aef039b9659e2
tree88e1a3fca607a0643a7f6e60aef80a2bc04323c3
parent745ad48e8cac47beec0b2f72dc3c64424bce1fec
AIO: fix cleanup in io_submit_one(...)

When IOCB_FLAG_RESFD flag is set and iocb->aio_resfd is incorrect,
statement 'goto out_put_req' is executed. At label 'out_put_req',
aio_put_req(..) is called, which requires 'req->ki_filp' set.

Signed-off-by: Yan Zheng<yanzheng@21cn.com>
Cc: Zach Brown <zach.brown@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/aio.c