lkml.org 
[lkml]   [2003]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] 2.5.71: remove MOD_{INC,DEC}_USE_COUNT from ppp_async
Date
It compiles and runs and does not allow me to unload ppp_async while up and 
running.

regards

-andrey--- 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,
\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.032 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site