Staging: udlfb: Rework startup and teardown to fix race conditions
authorBernie Thompson <bernie@plugable.com>
Mon, 15 Feb 2010 14:46:13 +0000 (06:46 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:43:00 +0000 (16:43 -0800)
commit2469d5dbcafe064859475a8aaf8da00ab33d440c
tree968c2adb597908806d34d90003df84a4013768b6
parent7d9485e2c53caaaed9606a39de1c2746cc9ba262
Staging: udlfb: Rework startup and teardown to fix race conditions

Rework probe to use refcounts and std functions

Because the different parts of the driver (usb, fbdev) tear down
in different orders, the driver previously could crash accessing
data that had already been freed.  Refcounting system used to handle.

Reworked probe to make use of refcounts, set mode using std fbops,
and set up sysfs and pre-allocated urbs.

Signed-off-by: Bernie Thompson <bernie@plugable.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/udlfb/udlfb.c
drivers/staging/udlfb/udlfb.h