projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f07a5e9
)
tpm: Properly clean sysfs entries in error path
author
Stefan Berger
<
[email protected]
>
Thu, 19 Jun 2014 19:00:19 +0000
(15:00 -0400)
committer
Peter Huewe
<
[email protected]
>
Tue, 29 Jul 2014 21:10:55 +0000
(23:10 +0200)
Properly clean the sysfs entries in the error path
Cc: <
[email protected]
>
Reported-by: Dmitry Kasatkin <
[email protected]
>
Signed-off-by: Stefan Berger <
[email protected]
>
Reviewed-by: Jason Gunthorpe <
[email protected]
>
Signed-off-by: Peter Huewe <
[email protected]
>
drivers/char/tpm/tpm-interface.c
patch
|
blob
|
history
diff --git
a/drivers/char/tpm/tpm-interface.c
b/drivers/char/tpm/tpm-interface.c
index 62e10fd1e1cbe2543043d42b1e3e7650160c89ba..d175fb8e719aa2c6e9d007013410a7c5cdbfde31 100644
(file)
--- a/
drivers/char/tpm/tpm-interface.c
+++ b/
drivers/char/tpm/tpm-interface.c
@@
-1095,7
+1095,7
@@
struct tpm_chip *tpm_register_hardware(struct device *dev,
goto del_misc;
if (tpm_add_ppi(&dev->kobj))
- goto del_
misc
;
+ goto del_
sysfs
;
chip->bios_dir = tpm_bios_log_setup(chip->devname);
@@
-1106,6
+1106,8
@@
struct tpm_chip *tpm_register_hardware(struct device *dev,
return chip;
+del_sysfs:
+ tpm_sysfs_del_device(chip);
del_misc:
tpm_dev_del_device(chip);
put_device: