Commit 498ced50 authored by Chas Williams's avatar Chas Williams Committed by David S. Miller

[ATM]: use try_module_get appropriately (from Stephen Hemminger <shemminger@osdl.org>)

parent 7795f94e
......@@ -563,7 +563,7 @@ Note: we do not have explicit unassign, but look at _push()
BRPRIV(skb->dev)->stats.rx_packets--;
br2684_push(atmvcc, skb);
}
(void) try_module_get(THIS_MODULE);
__module_get(THIS_MODULE);
return 0;
error:
write_unlock_irq(&devs_lock);
......
......@@ -307,7 +307,7 @@ static int pppoatm_assign_vcc(struct atm_vcc *atmvcc, void __user *arg)
atmvcc->user_back = pvcc;
atmvcc->push = pppoatm_push;
atmvcc->pop = pppoatm_pop;
(void) try_module_get(THIS_MODULE);
__module_get(THIS_MODULE);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment