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

* Re: [Xenomai-core] Fixes for serial driver
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Philippe Gerum @ 2005-10-14 15:00 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

Jan Kiszka wrote:
> 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. ;)
> 

Applied, thanks.

> Jan
> 
> 
> 
> ------------------------------------------------------------------------
> 
> 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);
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core


-- 

Philippe.


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

* Re: [Xenomai-core] Fixes for serial driver
  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
  0 siblings, 2 replies; 5+ messages in thread
From: Jan Kiszka @ 2005-10-14 15:07 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai-core

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

Philippe Gerum wrote:
> Jan Kiszka wrote:
> 
>> 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. ;)
>>
> 
> Applied, thanks.
> 

Except for the highly critical, showstopping rtserial.h patch?! ;)

Jan

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

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

* Re: [Xenomai-core] Fixes for serial driver
  2005-10-14 15:07   ` Jan Kiszka
@ 2005-10-14 15:15     ` Philippe Gerum
  2005-10-14 15:17     ` Philippe Gerum
  1 sibling, 0 replies; 5+ messages in thread
From: Philippe Gerum @ 2005-10-14 15:15 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

Jan Kiszka wrote:
> Philippe Gerum wrote:
> 
>>Jan Kiszka wrote:
>>
>>
>>>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. ;)
>>>
>>
>>Applied, thanks.
>>
> 
> 
> Except for the highly critical, showstopping rtserial.h patch?! ;)
> 

Likely lost it. Resend please?

-- 

Philippe.


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

* Re: [Xenomai-core] Fixes for serial driver
  2005-10-14 15:07   ` Jan Kiszka
  2005-10-14 15:15     ` Philippe Gerum
@ 2005-10-14 15:17     ` Philippe Gerum
  1 sibling, 0 replies; 5+ messages in thread
From: Philippe Gerum @ 2005-10-14 15:17 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

Jan Kiszka wrote:
> Philippe Gerum wrote:
> 
>>Jan Kiszka wrote:
>>
>>
>>>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. ;)
>>>
>>
>>Applied, thanks.
>>
> 
> 
> Except for the highly critical, showstopping rtserial.h patch?! ;)

Mm, ok. The file was just pending commit in my tree. Done now.

-- 

Philippe.


^ 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.