When the loader vkCreateDevice trampoline code calls down to
vkCreateDevice don't update the dev->device field with a bogus device
handle.
Change-Id: I703acb5283650ab0013483bda0f478da9b46e3ea
loader_create_info.pNext = &create_info_disp;
res = fpCreateDevice(pd->phys_dev, &loader_create_info, pAllocator,
&created_device);
+ if (res != VK_SUCCESS) {
+ return res;
+ }
dev->device = created_device;
} else {
// Couldn't find CreateDevice function!