From: Felipe W Damasio <felipewd@terra.com.br>
To: support@comtrol.com
Cc: Andrew Morton <akpm@osdl.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH] release_region in RocketPort char driver
Date: Mon, 06 Oct 2003 11:05:15 -0300 [thread overview]
Message-ID: <3F81769B.1060508@terra.com.br> (raw)
[-- 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;
}
next reply other threads:[~2003-10-06 14:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-06 14:05 Felipe W Damasio [this message]
2003-10-13 0:31 ` [PATCH] release_region in RocketPort char driver Andrew Morton
2003-10-14 13:44 ` Felipe W Damasio
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=3F81769B.1060508@terra.com.br \
--to=felipewd@terra.com.br \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=support@comtrol.com \
/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