lkml.org 
[lkml]   [2008]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] input: psmouse: fix potential input register race in psmouse_connect()
On Sat, Jan 12, 2008 at 03:13:45PM -0500, Andres Salomon wrote:
>
> 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, or creating a race condition if something else attempts
> to access the new input device). This calls input_unregister_device
> from the error path, and sets input_dev to NULL so that we don't
> attempt to also call input_free_device on it.
>
> Signed-off-by: Andres Salomon <dilinger@debian.org>

Applied, thank you Andres.

--
Dmitry



\
 
 \ /
  Last update: 2008-01-15 22:51    [W:0.052 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site