From: Krzysztof Mazur Date: Tue, 6 Nov 2012 22:16:57 +0000 (+0100) Subject: atm: add owner of push() callback to atmvcc X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~138^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec809bd817dfa1905283468e4c813684ed4efe78;p=pandora-kernel.git atm: add owner of push() callback to atmvcc The atm is using atmvcc->push(vcc, NULL) callback to notify protocol that vcc will be closed and protocol must detach from it. This callback is usually used by protocol to decrement module usage count by module_put(), but it leaves small window then module is still used after module_put(). Now the owner of push() callback is kept in atmvcc and module_put(atmvcc->owner) is called after the protocol is detached from vcc. Signed-off-by: Krzysztof Mazur Signed-off-by: David Woodhouse Acked-by: Chas Williams --- Reading git-diff-tree failed