Jan Kiszka wrote:
Hi,
please take a look at this line:
http://www.rts.uni-hannover.de/rtai/lxr/source/skins/rtai/registry.c?v=cvs-4.x-fusion#L137
There is no check for __rtai_hash_table being NULL on return, thus
insmod rtai_native can crash on low rt-heap.
Fixed, thanks.
BTW, is it required to alloc __rtai_hash_table from the rt-heap? To me,
it seems not.
Indeed. *_pkg_init() and *_pkg_cleanup() routines are guaranteed to run
over the Linux context, so using kmalloc() would be better here, and let
us alloc the primary hash array for more than 3 millions objects. Fixed.
Jan
------------------------------------------------------------------------
_______________________________________________
Rtai-dev mailing list
[EMAIL PROTECTED]
https://mail.gna.org/listinfo/rtai-dev
--
Philippe.