All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] Fixes for serial driver
@ 2005-10-14 14:28 Jan Kiszka
  2005-10-14 15:00 ` Philippe Gerum
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2005-10-14 14:28 UTC (permalink / raw)
  To: xenomai-core


[-- 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 --]

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

end of thread, other threads:[~2005-10-14 15:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-14 14:28 [Xenomai-core] Fixes for serial driver Jan Kiszka
2005-10-14 15:00 ` Philippe Gerum
2005-10-14 15:07   ` Jan Kiszka
2005-10-14 15:15     ` Philippe Gerum
2005-10-14 15:17     ` Philippe Gerum

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.