KMSDRM: missing return value in VideoInit() (Bug 4530)
diff --git a/src/video/kmsdrm/SDL_kmsdrmvideo.c b/src/video/kmsdrm/SDL_kmsdrmvideo.c
index 3fbdaa2..eebd7e8 100644
--- a/src/video/kmsdrm/SDL_kmsdrmvideo.c
+++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c
@@ -511,6 +511,8 @@ KMSDRM_VideoInit(_THIS)
KMSDRM_InitMouse(_this);
+ return ret;
+
cleanup:
if (encoder != NULL)
KMSDRM_drmModeFreeEncoder(encoder);