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

[ATM]: Need to use try_module_get not __module_get.

parent 1d8c72f0
......@@ -278,7 +278,8 @@ static int atm_do_connect_dev(struct atm_vcc *vcc,struct atm_dev *dev,int vpi,
vcc->qos.txtp.min_pcr,vcc->qos.txtp.max_pcr,vcc->qos.txtp.max_sdu);
DPRINTK(" RX: %d, PCR %d..%d, SDU %d\n",vcc->qos.rxtp.traffic_class,
vcc->qos.rxtp.min_pcr,vcc->qos.rxtp.max_pcr,vcc->qos.rxtp.max_sdu);
__module_get(dev->ops->owner);
if (!try_module_get(dev->ops->owner))
return -ENODEV;
if (dev->ops->open) {
error = dev->ops->open(vcc,vpi,vci);
if (error) {
......
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