diff options
| author | Igor Ostrowski <igor.ostrowski@intel.com> | 2017-10-06 18:26:23 +0200 |
|---|---|---|
| committer | Lenny Komow <lenny@lunarg.com> | 2017-10-10 09:26:31 -0600 |
| commit | 4fd1896bba381da26f51ab3958a90d612c08e143 (patch) | |
| tree | e51d5586373466112b7478f161764e0b682c0822 /loader/loader.c | |
| parent | af886bfd9c64d18ca649ed01051c0cf5e9d7a035 (diff) | |
| download | usermoji-4fd1896bba381da26f51ab3958a90d612c08e143.tar.xz | |
Loader: Fix OOM in loaderGetDeviceRegistryFiles()
loaderGetDeviceRegistryEntry() out of memory result was not handled properly.
Diffstat (limited to 'loader/loader.c')
| -rw-r--r-- | loader/loader.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/loader/loader.c b/loader/loader.c index 6850153e..912d81c9 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -609,6 +609,9 @@ VkResult loaderGetDeviceRegistryFiles(const struct loader_instance *inst, char * found = true; continue; } + else if (result == VK_ERROR_OUT_OF_HOST_MEMORY) { + break; + } status = CM_Get_Child(&childID, devID, 0); if (status != CR_SUCCESS) { |
