From: Jesper Juhl Date: Sun, 29 Jan 2012 20:34:04 +0000 (+0100) Subject: bcma: Fix mem leak in bcma_bus_scan() X-Git-Tag: v3.3-rc4~2^2~10^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9721ed2707661af75a414d09cdcd71f99a13f62;p=pandora-kernel.git bcma: Fix mem leak in bcma_bus_scan() bcma_bus_scan() leaks 'struct bcma_device' bytes if bcma_get_next_core() returns error. Restructure the code so we always kfree() the memory we allocate to the variable 'core' before it goes out of scope. Signed-off-by: Jesper Juhl Signed-off-by: John W. Linville --- Reading git-diff-tree failed