Bad cleanup in gpu.c

This commit is contained in:
plutoo 2018-03-11 01:45:21 +01:00
parent 9a10f85fab
commit a4982f3667

View File

@ -7,8 +7,10 @@ Result nvgpuCreate(NvGpu* g)
if (R_FAILED(nvinfoInit())) if (R_FAILED(nvinfoInit()))
return MAKERESULT(Module_Libnx, LibnxError_NvinfoFailedToInitialize); return MAKERESULT(Module_Libnx, LibnxError_NvinfoFailedToInitialize);
if (R_FAILED(nvbufInit())) if (R_FAILED(nvbufInit())) {
nvinfoExit();
return MAKERESULT(Module_Libnx, LibnxError_NvbufFailedToInitialize); return MAKERESULT(Module_Libnx, LibnxError_NvbufFailedToInitialize);
}
rc = nvchannelCreate(&g->gpu_channel, "/dev/nvhost-gpu"); rc = nvchannelCreate(&g->gpu_channel, "/dev/nvhost-gpu");