[PATCH 6.4 631/800] test_firmware: return ENOMEM instead of ENOSPC on failed memory allocation