staging: udlfb: revamp reference handling to insure successful shutdown
authorBernie Thompson <bernie@plugable.com>
Sun, 5 Sep 2010 23:35:19 +0000 (16:35 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 5 Sep 2010 23:50:18 +0000 (16:50 -0700)
commit33077b8d3042e01da61924973e372abe589ba297
tree9269cdd17d93253e33620317a8fff5226d5f8ebf
parentf11f4bc027414bc7db5dde49c55b7149a627b591
staging: udlfb: revamp reference handling to insure successful shutdown

Revamp reference handling and synchronization for unload/shutdown

Udlfb is a "virtual" framebuffer device that really exists on
two separate stacks: at the bottom of the framebuffer interface,
and on top of USB.  During unload, there's no guarantee which
one will tear down first. So reference counting must be solid
to handle all possibilities and not access anything once its gone.

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