summaryrefslogtreecommitdiff
path: root/fs/aio.c
diff options
context:
space:
mode:
authorJeevan Shriram <jshriram@codeaurora.org>2016-03-15 12:16:16 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:24:21 -0700
commit643a1372494fcc2a5160e83360e178ca0c41f7bf (patch)
tree08f666c012118aaa02d3f4257fa9d72a5735f7f5 /fs/aio.c
parent28e3a4040ee49cd184a9868a11305fa7adb8f1d4 (diff)
net: initialize variables to avoid UML compilation failure
While compiling for usermode linux for x86 architecture, observed compilation issues with probable usage of uninitialized variables. This change initializes the variables. Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Diffstat (limited to 'fs/aio.c')
-rw-r--r--fs/aio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/aio.c b/fs/aio.c
index 155f84253f33..81761a4290d5 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -1316,7 +1316,7 @@ static long read_events(struct kioctx *ctx, long min_nr, long nr,
SYSCALL_DEFINE2(io_setup, unsigned, nr_events, aio_context_t __user *, ctxp)
{
struct kioctx *ioctx = NULL;
- unsigned long ctx;
+ unsigned long ctx = 0;
long ret;
ret = get_user(ctx, ctxp);