[PATCH OLK-6.6 2/9] xsched: fix NULL pointer risk on attach entry allocation