From: Thomas Gleixner Date: Tue, 28 Sep 2010 18:57:19 +0000 (+0200) Subject: x86, irq: Plug memory leak in sparse irq X-Git-Tag: v2.6.36-rc7~21^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cf180c94e9166cda083ff65333883ab3648e852;p=pandora-kernel.git x86, irq: Plug memory leak in sparse irq free_irq_cfg() is not freeing the cpumask_vars in irq_cfg. Fixing this triggers a use after free caused by the fact that copying struct irq_cfg is done with memcpy, which copies the pointer not the cpumask. Fix both places. Signed-off-by: Thomas Gleixner Cc: Yinghai Lu LKML-Reference: Signed-off-by: Thomas Gleixner Cc: stable@kernel.org Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed