[PATCH 5.15 300/532] test_firmware: return ENOMEM instead of ENOSPC on failed memory allocation