powerpc/powernv/vas: Fix order of cleanup in vas_window_init_dbgdir()
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Wed, 20 Dec 2017 01:10:29 +0000 (17:10 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 13 Mar 2018 04:10:15 +0000 (15:10 +1100)
commit1373cc31074dff09419d616c2ce911eea624cff5
tree8084e28f09c36ddd955c8cf8236f89ca7dbcd406
parent2f65272a2a304ec6aa32ad9a45b1506929406321
powerpc/powernv/vas: Fix order of cleanup in vas_window_init_dbgdir()

Fix the order of cleanup to ensure we free the name buffer in case
of an error creating 'hvwc' or 'info' files.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/vas-debug.c