mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH] Linux 2.5.68 - Fix module_put after return in drivers/net/wan/n2.c
  2003-05-01 19:58 [PATCH] Linux 2.5.68 - Fix module_put after return in drivers/net/wan/n2.c Gabriel Devenyi
@ 2003-04-30 22:00 ` Francois Romieu
  0 siblings, 0 replies; 2+ messages in thread
From: Francois Romieu @ 2003-04-30 22:00 UTC (permalink / raw)
  To: Gabriel Devenyi; +Cc: khc, linux-kernel

Gabriel Devenyi <devenyga@mcmaster.ca> :
[linux-2.5.68/drivers/net/wan/n2.c]

Already fixed in Linus's repository.

--
Ueimor

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] Linux 2.5.68 - Fix module_put after return in drivers/net/wan/n2.c
@ 2003-05-01 19:58 Gabriel Devenyi
  2003-04-30 22:00 ` Francois Romieu
  0 siblings, 1 reply; 2+ messages in thread
From: Gabriel Devenyi @ 2003-05-01 19:58 UTC (permalink / raw)
  To: khc; +Cc: linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This patch applies to 2.5.68. It is a bug listed at kbugs.org. module_put is never executed 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/n2.c	2003-04-19 22:48:55.000000000 -0400
+++ linux-2.5.68-changed/drivers/net/wan/n2.c	2003-05-01 15:05:36.000000000 -0400
@@ -223,8 +223,8 @@
 
 	int result = hdlc_open(hdlc);
 	if (result) {
- -		return result;
 		module_put(THIS_MODULE);
+		return result;
 	}
 
 	mcr &= port->phy_node ? ~DTR_PORT1 : ~DTR_PORT0; /* set DTR ON */

- ---ENDFILE---
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+sXxm7I5UBdiZaF4RAu8kAJ0RKpz8xwzNovBJIgD/vd4f4hEAzQCeNKpI
USAyeWl6lmsVqOPEzV/r1tI=
=rplC
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-30 21:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-01 19:58 [PATCH] Linux 2.5.68 - Fix module_put after return in drivers/net/wan/n2.c Gabriel Devenyi
2003-04-30 22:00 ` Francois Romieu

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®