Skip to content

Commit

Permalink
Staging: udlfb: Rework startup and teardown to fix race conditions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bernie Thompson authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent 7d9485e commit 2469d5d
Show file tree
Hide file tree
Showing 2 changed files with 198 additions and 109 deletions.
Loading

0 comments on commit 2469d5d

Please sign in to comment.