Commit 7f080bc0 authored by Chas Williams's avatar Chas Williams Committed by Hideaki Yoshifuji

[ATM]: Fix module handling in USB speedtouch driver.

parent 25f5d74c
......@@ -952,19 +952,15 @@ static int udsl_atm_open (struct atm_vcc *vcc, short vpi, int vci)
return -EAGAIN;
}
MOD_INC_USE_COUNT;
down (&instance->serialize); /* vs self, udsl_atm_close */
if (udsl_find_vcc (instance, vpi, vci)) {
up (&instance->serialize);
MOD_DEC_USE_COUNT;
return -EADDRINUSE;
}
if (!(new = kmalloc (sizeof (struct udsl_vcc_data), GFP_KERNEL))) {
up (&instance->serialize);
MOD_DEC_USE_COUNT;
return -ENOMEM;
}
......@@ -1034,8 +1030,6 @@ static void udsl_atm_close (struct atm_vcc *vcc)
up (&instance->serialize);
MOD_DEC_USE_COUNT;
dbg ("udsl_atm_close successful");
}
......
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