From: Andrey Borzenkov <arvidjaar@mail.ru>
To: linux-ppp@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] 2.5.71: remove MOD_{INC,DEC}_USE_COUNT from ppp_async
Date: Mon, 16 Jun 2003 22:34:33 +0400 [thread overview]
Message-ID: <200306162234.33350.arvidjaar@mail.ru> (raw)
[-- Attachment #1: Type: text/plain, Size: 103 bytes --]
It compiles and runs and does not allow me to unload ppp_async while up and
running.
regards
-andrey
[-- Attachment #2: 2.5.71-ppp_async.USE_COUNT.patch --]
[-- Type: text/x-diff, Size: 839 bytes --]
--- linux-2.5.71/drivers/net/ppp_async.c.USE_COUNT 2003-06-16 20:43:03.000000000 +0400
+++ linux-2.5.71/drivers/net/ppp_async.c 2003-06-16 21:41:07.000000000 +0400
@@ -147,7 +147,6 @@ ppp_asynctty_open(struct tty_struct *tty
struct asyncppp *ap;
int err;
- MOD_INC_USE_COUNT;
err = -ENOMEM;
ap = kmalloc(sizeof(*ap), GFP_KERNEL);
if (ap == 0)
@@ -183,7 +182,6 @@ ppp_asynctty_open(struct tty_struct *tty
out_free:
kfree(ap);
out:
- MOD_DEC_USE_COUNT;
return err;
}
@@ -223,7 +221,6 @@ ppp_asynctty_close(struct tty_struct *tt
if (ap->tpkt != 0)
kfree_skb(ap->tpkt);
kfree(ap);
- MOD_DEC_USE_COUNT;
}
/*
@@ -351,6 +348,7 @@ ppp_asynctty_wakeup(struct tty_struct *t
static struct tty_ldisc ppp_ldisc = {
+ .owner = THIS_MODULE,
.magic = TTY_LDISC_MAGIC,
.name = "ppp",
.open = ppp_asynctty_open,
reply other threads:[~2003-06-16 18:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200306162234.33350.arvidjaar@mail.ru \
--to=arvidjaar@mail.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-ppp@vger.kernel.org \
/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®