]> git.baikalelectronics.ru Git - kernel.git/commit
Input: psmouse - fix potential memory leak in psmouse_connect()
authorAndres Salomon <dilinger@queued.net>
Thu, 17 Jan 2008 17:01:30 +0000 (12:01 -0500)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 17 Jan 2008 17:01:30 +0000 (12:01 -0500)
commitf4b542769a617dc972fc09ae6fc71d82a11720b5
tree34abba83caf7dde6c22dc13bf26e0ee11e136b41
parent4e59cdcc1d83b11270f86a0a51d408ab443d5d5f
Input: psmouse - fix potential memory leak in psmouse_connect()

If we successfully call input_register_device() in psmouse_connect()
but sysfs_create_group() fails, we'll enter the error path without
ever having called input_unregister_device() potentially leaking
memory.

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/psmouse-base.c