Messages in this thread Patch in this message |  | | From | Duncan Sands <> | Subject | [PATCH 01/14] USB speedtouch: remove MOD_*_USE_COUNT | Date | Wed, 21 May 2003 00:53:40 +0200 |
| |
The ATM layer takes a reference with fops_get. This patch is already in Linus's tree, but hasn't reached Greg's tree yet. BK test :)
speedtch.c | 6 ------ 1 files changed, 6 deletions(-)
diff -Nru a/drivers/usb/misc/speedtch.c b/drivers/usb/misc/speedtch.c --- a/drivers/usb/misc/speedtch.c Wed May 21 00:39:53 2003 +++ b/drivers/usb/misc/speedtch.c Wed May 21 00:39:53 2003 @@ -952,19 +952,15 @@ 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; } @@ -1033,8 +1029,6 @@ clear_bit (ATM_VF_ADDR, &vcc->flags); up (&instance->serialize); - - MOD_DEC_USE_COUNT; dbg ("udsl_atm_close successful"); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |