[PATCH v2 9/9] drm/panel: Add Ronbo RB070D30 panel

Konstantin Sudakov k.sudakov at integrasources.com
Fri Feb 8 12:24:12 UTC 2019


Hello, Maxime!

>+mode = drm_mode_duplicate(panel->drm, &default_mode);
>+if (!mode) {
>+DRM_DEV_ERROR(&ctx->dsi->dev,
>+      "Failed to add mode " DRM_MODE_FMT "\n",
>+      DRM_MODE_ARG(mode));
>+return -EINVAL;
>+}

Just small fix: DRM_MODE_ARG(mode) -> DRM_MODE_ARG(&default_mode).
The "mode" variable is NULL, it leads to the UB.


More information about the dri-devel mailing list