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