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)
committerPeter Huewe <peterhuewe@gmx.de>
Tue, 29 Jul 2014 21:10:55 +0000 (23:10 +0200)
commitb49e1043c48dac23f64fba684d31c4a96c1ffaa0
tree6b6e91287796c992300d6b328df1b29084b27896
parentf07a5e9a331045e976a3d317ba43d14859d9407c
tpm: Properly clean sysfs entries in error path

Properly clean the sysfs entries in the error path

Cc: <stable@vger.kernel.org>
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>
drivers/char/tpm/tpm-interface.c