From: Gabriel Devenyi <devenyga@mcmaster.ca>
To: khc@pm.waw.pl
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Linux 2.5.68 - Fix module_put after return statement
Date: Thu, 1 May 2003 15:48:15 -0400 [thread overview]
Message-ID: <200305011548.16524.devenyga@mcmaster.ca> (raw)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This patch applies to 2.5.68. Its listed on kbugs.org. The function module_put is never called because it is after return.
Please CC me with any discussion.
- --
Building the Future,
Gabriel Devenyi
devenyga@mcmaster.ca
- ---FILE---
- --- linux-2.5.68/drivers/net/wan/c101.c 2003-04-19 22:50:34.000000000 -0400
+++ linux-2.5.68-changed/drivers/net/wan/c101.c 2003-05-01 15:04:23.000000000 -0400
@@ -161,8 +161,8 @@
int result = hdlc_open(hdlc);
if (result) {
- - return result;
module_put(THIS_MODULE);
+ return result;
}
writeb(1, port->win0base + C101_DTR);
- ---ENDFILE---
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+sXn/7I5UBdiZaF4RAitxAJ9UHBL/iO7nuElsJkIBTqivnGoGDQCfQYbj
6ZrVhEXv1ir82/V/KKHjEQI=
=xOsM
-----END PGP SIGNATURE-----
next reply other threads:[~2003-04-30 19:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-01 19:48 Gabriel Devenyi [this message]
2003-04-30 21:59 ` Francois Romieu
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=200305011548.16524.devenyga@mcmaster.ca \
--to=devenyga@mcmaster.ca \
--cc=khc@pm.waw.pl \
--cc=linux-kernel@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®