diff options
Diffstat (limited to 'fs/aio.c')
-rw-r--r-- | fs/aio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -812,7 +812,7 @@ static struct kioctx *lookup_ioctx(unsigned long ctx_id) | |||
812 | goto out; | 812 | goto out; |
813 | 813 | ||
814 | ctx = table->table[id]; | 814 | ctx = table->table[id]; |
815 | if (ctx->user_id == ctx_id) { | 815 | if (ctx && ctx->user_id == ctx_id) { |
816 | percpu_ref_get(&ctx->users); | 816 | percpu_ref_get(&ctx->users); |
817 | ret = ctx; | 817 | ret = ctx; |
818 | } | 818 | } |