]> git.baikalelectronics.ru Git - kernel.git/commit
pnp: avoid a small unlikely memory leak in proc_read_escd()
authorJesper Juhl <jesper.juhl@gmail.com>
Wed, 17 Oct 2007 06:26:56 +0000 (23:26 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:51 +0000 (08:42 -0700)
commitdcf9b42aa14291e9445f87435f05bf811a7ed48f
tree4518c45d295a8668e768a648f6fc5cc71f9d9878
parentbb12029a9bea1044738d7219fedaebb8569892df
pnp: avoid a small unlikely memory leak in proc_read_escd()

There's a small and unlikely memory leak in
drivers/pnp/pnpbios/proc.c::proc_read_escd().  It's inside a sanity check,
so it probably won't trigger often (if at all), however it *is* a potential
leak and it's easy to avoid, so let's just fix it :)

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/pnp/pnpbios/proc.c