tpm: Properly clean sysfs entries in error path
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 19 Jun 2014 19:00:19 +0000 (15:00 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Sep 2014 16:19:08 +0000 (09:19 -0700)
commit0250c235de86b20b54d2a3477f48e13759160da8
tree874684f3893fb29d64b1ae581546f50689fea21f
parent8b5a02ed633c1bfa97359abcd098aac689c1ca9b
tpm: Properly clean sysfs entries in error path

commit b49e1043c48dac23f64fba684d31c4a96c1ffaa0 upstream.

Properly clean the sysfs entries in the error path

Reported-by: Dmitry Kasatkin <dmitry.kasatkin@gmail.com>
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/tpm/tpm-interface.c