]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
aio-kill-ki_retry-fix
authorAndrew Morton <akpm@linux-foundation.org>
Sun, 10 Mar 2013 10:55:44 +0000 (21:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 12 Mar 2013 03:57:45 +0000 (14:57 +1100)
use fmode_t in aio_run_iocb()

Cc: Kent Overstreet <koverstreet@google.com>
Reported-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/aio.c

index 22a912701d7308d3243d0eb429ae8b915da66a44..45c300856dde08a1395b24b4336daf14d6808b00 100644 (file)
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -1043,7 +1043,8 @@ static ssize_t aio_run_iocb(struct kiocb *req, bool compat)
 {
        struct file *file = req->ki_filp;
        ssize_t ret;
-       int rw, mode;
+       int rw;
+       fmode_t mode;
        aio_rw_op *rw_op;
 
        switch (req->ki_opcode) {