]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: fix a potential memory leak
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 1 Oct 2015 09:46:07 +0000 (12:46 +0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Oct 2015 10:11:25 +0000 (21:11 +1100)
commit82ad2ca0d672f21fb0e9970587529e1d485671e4
treef10c338a4e927857280b22fcc1138ef5aac54cf5
parent477895cd32045dd47b3e862a626b2ba91fedbe60
powerpc/pseries: fix a potential memory leak

In case we have a full node name like /foo/bar and /foo is not found the
parent_path left unfreed. So, free a memory before return to a caller.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/of_helpers.c