diff options
Diffstat (limited to 'fs/aio.c')
-rw-r--r-- | fs/aio.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -196,8 +196,10 @@ static void aio_free_ring(struct kioctx *ctx) | |||
196 | 196 | ||
197 | put_aio_ring_file(ctx); | 197 | put_aio_ring_file(ctx); |
198 | 198 | ||
199 | if (ctx->ring_pages && ctx->ring_pages != ctx->internal_pages) | 199 | if (ctx->ring_pages && ctx->ring_pages != ctx->internal_pages) { |
200 | kfree(ctx->ring_pages); | 200 | kfree(ctx->ring_pages); |
201 | ctx->ring_pages = NULL; | ||
202 | } | ||
201 | } | 203 | } |
202 | 204 | ||
203 | static int aio_ring_mmap(struct file *file, struct vm_area_struct *vma) | 205 | static int aio_ring_mmap(struct file *file, struct vm_area_struct *vma) |