Commit 6a1e7ccf authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Daniel Vetter

drm: Fix wrong kfree() in managed resource usage example

The example code showing how to use the managed resource API calls
kfree() on the wrong pointer. Fix it.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200402095325.5266-1-laurent.pinchart+renesas@ideasonboard.com
parent bcf6293d
...@@ -305,7 +305,7 @@ void drm_minor_release(struct drm_minor *minor) ...@@ -305,7 +305,7 @@ void drm_minor_release(struct drm_minor *minor)
* *
* ret = devm_drm_dev_init(&pdev->dev, drm, &driver_drm_driver); * ret = devm_drm_dev_init(&pdev->dev, drm, &driver_drm_driver);
* if (ret) { * if (ret) {
* kfree(drm); * kfree(priv);
* return ret; * return ret;
* } * }
* drmm_add_final_kfree(drm, priv); * drmm_add_final_kfree(drm, priv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment