diff options
| author | Sasha Levin <[email protected]> | 2013-11-19 22:33:02 +0000 |
|---|---|---|
| committer | Benjamin LaHaise <[email protected]> | 2013-11-19 22:40:48 +0000 |
| commit | d558023207e008a4476a3b7bb8706b2a2bf5d84f (patch) | |
| tree | 3099defaf443113295568a51fe6bbab72b34542c /lib/lockref.c | |
| parent | Merge branch 'aio-fix' of http://evilpiepirate.org/git/linux-bcache (diff) | |
| download | kernel-d558023207e008a4476a3b7bb8706b2a2bf5d84f.tar.gz kernel-d558023207e008a4476a3b7bb8706b2a2bf5d84f.zip | |
aio: prevent double free in ioctx_alloc
ioctx_alloc() calls aio_setup_ring() to allocate a ring. If aio_setup_ring()
fails to do so it would call aio_free_ring() before returning, but
ioctx_alloc() would call aio_free_ring() again causing a double free of
the ring.
This is easily reproducible from userspace.
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Benjamin LaHaise <[email protected]>
Diffstat (limited to 'lib/lockref.c')
0 files changed, 0 insertions, 0 deletions
