mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[LLC]: Use refcounting with struct llc_sap
Signed-off-by: Jochen Friedrich <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
04e4223f44
commit
6e2144b768
9 changed files with 56 additions and 48 deletions
|
|
@ -56,7 +56,7 @@ struct datalink_proto *register_8022_client(unsigned char type,
|
|||
|
||||
void unregister_8022_client(struct datalink_proto *proto)
|
||||
{
|
||||
llc_sap_close(proto->sap);
|
||||
llc_sap_put(proto->sap);
|
||||
kfree(proto);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ module_init(snap_init);
|
|||
|
||||
static void __exit snap_exit(void)
|
||||
{
|
||||
llc_sap_close(snap_sap);
|
||||
llc_sap_put(snap_sap);
|
||||
}
|
||||
|
||||
module_exit(snap_exit);
|
||||
|
|
|
|||
Loading…
Reference in a new issue