[S390] hypfs: Fix error handling in hypfs_diag initialization
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Fri, 29 Oct 2010 14:50:39 +0000 (16:50 +0200)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Fri, 29 Oct 2010 14:50:50 +0000 (16:50 +0200)
commit3c8ebca0453c71a2a8be79e6dd40e7be2d6167cb
tree7ebee2073ac4bd32638931fadadcfc22a4855675
parent0b52783d4feb14d6ff990a63512a66d6131d41f9
[S390] hypfs: Fix error handling in hypfs_diag initialization

Fix the following two error handling bugs in hypfs_diag_init():
* No need for calling diag204_free_buffer()
* Initialize name table only in case of LPAR and prevent error message
  on non-LPAR systems.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/hypfs/hypfs_diag.c