From: Duncan Sands <baldrick@wanadoo.fr>
To: Greg KH <greg@kroah.com>
Cc: linux-usb-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: [PATCH] USB speedtouch (2.4): move MOD_INC_USE_COUNT
Date: Thu, 10 Apr 2003 09:21:18 +0200 [thread overview]
Message-ID: <200304100921.18085.baldrick@wanadoo.fr> (raw)
In-Reply-To: <20030410001915.GB3542@kroah.com>
speedtouch.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff -Nru a/drivers/usb/speedtouch.c b/drivers/usb/speedtouch.c
--- a/drivers/usb/speedtouch.c Thu Apr 10 09:18:28 2003
+++ b/drivers/usb/speedtouch.c Thu Apr 10 09:18:28 2003
@@ -938,15 +938,19 @@
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;
}
@@ -975,8 +979,6 @@
udsl_fire_receivers (instance);
dbg ("udsl_atm_open successful");
-
- MOD_INC_USE_COUNT;
return 0;
}
next prev parent reply other threads:[~2003-04-10 7:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-04 19:15 [PATCH] Backport of USB speedtouch driver to 2.4 Duncan Sands
2003-04-10 0:19 ` Greg KH
2003-04-10 7:21 ` Duncan Sands [this message]
2003-04-10 7:33 ` [PATCH] USB speedtouch (2.4): move MOD_INC_USE_COUNT Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200304100921.18085.baldrick@wanadoo.fr \
--to=baldrick@wanadoo.fr \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®