[PATCH 4.19 313/323] test_firmware: return ENOMEM instead of ENOSPC on failed memory allocation