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
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);
signature.asc
Description: OpenPGP digital signature