[PATCH openEuler-5.10-LTS 160/427] selftests/resctrl: Fix null pointer dereference on open failed