From: Jan Kiszka <kiszka@domain.hid>
To: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] Fixes for serial driver
Date: Fri, 14 Oct 2005 16:28:16 +0200 [thread overview]
Message-ID: <434FC080.3000900@domain.hid> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 176 bytes --]
Hi,
attached are two minor fixes for the serial driver and header: one is
cosmetic, the other addresses out-of-memory detection.
Credits go, as usual, to Sebastian. ;)
Jan
[-- Attachment #1.2: serial.patch --]
[-- Type: text/plain, Size: 906 bytes --]
Index: skins/rtdm/rtserial.h
===================================================================
--- skins/rtdm/rtserial.h (revision 29)
+++ skins/rtdm/rtserial.h (working copy)
@@ -113,7 +113,7 @@
/*!
* @anchor RTSER_xxx_PARITY @name RTSER_xxx_PARITY
- * Number of parity bits @anchor RTSER_xxx_PARITY
+ * Number of parity bits
* @{ */
#define RTSER_NO_PARITY 0x00
#define RTSER_ODD_PARITY 0x01
Index: drivers/16550A/16550A.c
===================================================================
--- drivers/16550A/16550A.c (revision 29)
+++ drivers/16550A/16550A.c (working copy)
@@ -568,6 +568,9 @@
} else
hist_buf =
rtdm_malloc(IN_BUFFER_SIZE * sizeof(__u64));
+
+ if (!hist_buf)
+ return -ENOMEM;
}
rt_16550_set_config(ctx, config, &hist_buf);
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
next reply other threads:[~2005-10-14 14:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-14 14:28 Jan Kiszka [this message]
2005-10-14 15:00 ` [Xenomai-core] Fixes for serial driver Philippe Gerum
2005-10-14 15:07 ` Jan Kiszka
2005-10-14 15:15 ` Philippe Gerum
2005-10-14 15:17 ` Philippe Gerum
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=434FC080.3000900@domain.hid \
--to=kiszka@domain.hid \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.