Memory leak in PS/2 mouse driver

Bernd Paysan (bernd.paysan@gmx.net)
Mon, 7 Dec 1998 11:42:05 +0100 (MET)


Hi!

I found no corresponding kfree() to the kmalloc in aux_open in the PS/2
mouse driver in drivers/char/pc_keyb.c. I suggest adding a kfree(queue) at the
end of the release_aux function. That's more than 2K of kernel memory,
which is wasted every time the X server is restarted (ok, doesn't happen so
often, but with many days uptime on a machine with many short-time users...).

Happens with all recent kernels (I don't have old kernels around ;-).

---
Sent through Global Message Exchange - http://www.gmx.net

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/