diff --git a/fs/aio.c b/fs/aio.c index 4f641abac3c0927f2036f81f3f70106a57a09e22..769791df36b4f357bdcbbd2fa891cb23d6f477cd 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -1673,7 +1673,7 @@ asmlinkage long sys_io_cancel(aio_context_t ctx_id, struct iocb __user *iocb, ret = -EFAULT; } } else - printk(KERN_DEBUG "iocb has no cancel operation\n"); + ret = -EINVAL; put_ioctx(ctx);