]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit12834b9ba0638ba32ee676ffcd5cc805706cff41
tree4df3181f4cb752c9a7d5c9dd09301097d405875c
parentca7a8521bd50207d128bb9207bcbf0bcfa25752e
[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