pppoatm: fix module_put() race
authorKrzysztof Mazur <krzysiek@podlesie.net>
Tue, 6 Nov 2012 22:16:59 +0000 (23:16 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 28 Nov 2012 00:37:04 +0000 (00:37 +0000)
commite41faed9cde1acce657f75a0b19a1787e9850d3f
tree92354ef7b85f7684d247a9e8ebb402c5f0d86ed5
parent3b1a914595f3f9beb9e38ff3ddc7bdafa092ba22
pppoatm: fix module_put() race

The pppoatm used module_put() during unassignment from vcc with
hope that we have BKL. This assumption is no longer true.

Now owner field in atmvcc is used to move this module_put()
to vcc_destroy_socket().

Signed-off-by: Krzysztof Mazur <krzysiek@podlesie.net>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
net/atm/pppoatm.c