public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] release_region in RocketPort char driver
@ 2003-10-06 14:05 Felipe W Damasio
  2003-10-13  0:31 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Felipe W Damasio @ 2003-10-06 14:05 UTC (permalink / raw)
  To: support; +Cc: Andrew Morton, Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 192 bytes --]

	Hi Andrew/Comtrol people :),

	Patch against 2.6.0-test6.

	- Release a previous requested region if tty_register_driver fails. 
Found by smatch

	Please consider applying,

	Thanks.

Felipe

[-- Attachment #2: rocket-release_region.patch --]
[-- Type: text/plain, Size: 380 bytes --]

--- linux-2.6.0-test6/drivers/char/rocket.c.orig	2003-10-06 10:57:29.000000000 -0300
+++ linux-2.6.0-test6/drivers/char/rocket.c	2003-10-06 11:00:29.000000000 -0300
@@ -2468,6 +2468,7 @@
 	if (retval < 0) {
 		printk(KERN_INFO "Couldn't install tty RocketPort driver (error %d)\n", -retval);
 		put_tty_driver(rocket_driver);
+		release_region(controller, 4);
 		return -1;
 	}
 

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

end of thread, other threads:[~2003-10-14 14:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-06 14:05 [PATCH] release_region in RocketPort char driver Felipe W Damasio
2003-10-13  0:31 ` Andrew Morton
2003-10-14 13:44   ` Felipe W Damasio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox