commit | bcdfa76ff387a70d3b47b309917b0e6598287baf | [log] [tgz] |
---|---|---|
author | Ramakrishna Pallala <ramakrishna.pallala@intel.com> | Wed May 16 11:23:20 2018 +0530 |
committer | Anas Nashif <nashif@linux.intel.com> | Wed May 16 23:15:21 2018 +0300 |
tree | e639ac98e1a3ac621c6430b238a007a15d6af57d | |
parent | 103cbe8c90707352fb4a2069fd6e8fcf46649145 [diff] |
lib: posix: Fix pthread_attr_init() return code pthread_attr_init() should not return EBUSY as per POSIX spec so fixed this by return ENOMEM if the attr pointer is NULL. Also fixed the attribute initialization logic by copying the init_pthread_attrs to the attr. Fixes Issue #7480 Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>