diff options
author | André Goddard Rosa <andre.goddard@gmail.com> | 2010-05-11 23:07:03 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-12 02:33:42 +0200 |
commit | a3ed2a15719219769bb095b28009c1d654a419e8 (patch) | |
tree | 22039574b16ad79f9eba06317e8f1ad7cd9d53c3 /drivers/net/slhc.c | |
parent | fbdev: bfin-t350mcqb-fb: fix fbmem allocation with blanking lines (diff) | |
download | linux-a3ed2a15719219769bb095b28009c1d654a419e8.tar.xz linux-a3ed2a15719219769bb095b28009c1d654a419e8.zip |
mqueue: fix kernel BUG caused by double free() on mq_open()
In case of aborting because we reach the maximum amount of memory which
can be allocated to message queues per user (RLIMIT_MSGQUEUE), we would
try to free the message area twice when bailing out: first by the error
handling code itself, and then later when cleaning up the inode through
delete_inode().
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/net/slhc.c')
0 files changed, 0 insertions, 0 deletions