kernel/fs/aio.c
.. .. @@ -335,6 +335,9 @@ 335 335 spin_lock(&mm->ioctx_lock); 336 336 rcu_read_lock(); 337 337 table = rcu_dereference(mm->ioctx_table); 338 + if (!table)339 + goto out_unlock;340 +338 341 for (i = 0; i < table->nr; i++) { 339 342 struct kioctx *ctx; 340 343 .. .. @@ -348,6 +351,7 @@ 348 351 } 349 352 } 350 353 354 +out_unlock:351 355 rcu_read_unlock(); 352 356 spin_unlock(&mm->ioctx_lock); 353 357 return res;