]> git.baikalelectronics.ru Git - kernel.git/commit
smpboot: fix memory leak on error handling
authorFrederic Weisbecker <fweisbec@gmail.com>
Fri, 4 Sep 2015 22:45:00 +0000 (15:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Sep 2015 23:54:41 +0000 (16:54 -0700)
commitd0d4832a66700338ef5d4e4aeefb0e6e0cde3df9
treec2322eaf65bb956b063dd2712caab6b2347db169
parent98aff7d24128d0b74365555ef775a8c3f5c4a23b
smpboot: fix memory leak on error handling

The cpumask is allocated before threads get created. If the latter step
fails, we need to free the cpumask.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Reviewed-by: Chris Metcalf <cmetcalf@ezchip.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Chris Metcalf <cmetcalf@ezchip.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ulrich Obergfell <uobergfe@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/smpboot.c