[PATCH] ibmasm: use after free fix
authorMax Asbock <masbock@us.ibm.com>
Fri, 10 Mar 2006 01:33:48 +0000 (17:33 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 10 Mar 2006 03:47:37 +0000 (19:47 -0800)
commit6a88231fc7da311e4da4ce2011d1a132c80c145a
tree383281e2e283a2f3da686d3ea57cd7c4777a7282
parenta6bf527091b1dd40f1b6a496812ce7520621c282
[PATCH] ibmasm: use after free fix

The kobject_put() can free the memory at *cmd, but cmd->lock points to a
persistent lock that is not freed with cmd.

Signed-off-by: Max Asbock <masbock@us.ibm.com>
Cc: Vernon Mauery <vernux@us.ibm.com>
Cc: Srihari Vijayaraghavan <sriharivijayaraghavan@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/misc/ibmasm/ibmasm.h