[PATCH] TPM: fix failure path leak
authorRandy Dunlap <rdunlap@xenotime.net>
Fri, 14 Jul 2006 07:24:28 +0000 (00:24 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 15 Jul 2006 04:53:55 +0000 (21:53 -0700)
commit2e82636a3dd8d3cf1ba87380608da4f6a0f6ec47
tree4df3181f4cb752c9a7d5c9dd09301097d405875c
parent3a5f5e488ceee9e08df3dff3f01b12fafc9e7e68
[PATCH] TPM: fix failure path leak

kfree(devname) on the misc_register() failure path.  Otherwise it is lost
forever.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Kylene Jo Hall <kjhall@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/tpm/tpm.c