From: André Goddard Rosa Date: Tue, 11 May 2010 21:07:03 +0000 (-0700) Subject: mqueue: fix kernel BUG caused by double free() on mq_open() X-Git-Tag: v2.6.34~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3ed2a15719219769bb095b28009c1d654a419e8;p=pandora-kernel.git 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 Cc: Alexey Dobriyan Cc: Al Viro Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed