]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitee52e2c277b802c4ef626f88a14a7447135e25ea
tree9269cdd17d93253e33620317a8fff5226d5f8ebf
parent2b20b3ffe4faa173ef423b709427ff26996cd377
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