diff options
| author | Laurent Pinchart <[email protected]> | 2020-04-02 09:53:25 +0000 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2020-04-02 11:04:57 +0000 |
| commit | 6a1e7ccf8cdcd6d5c108c592d0591a1752a45b9c (patch) | |
| tree | 3edff72b4a2f0ddb1b8e7743917c8b78e1a02f21 | |
| parent | drm/core: Calculate bpp in afbc helper (diff) | |
| download | kernel-6a1e7ccf8cdcd6d5c108c592d0591a1752a45b9c.tar.gz kernel-6a1e7ccf8cdcd6d5c108c592d0591a1752a45b9c.zip | |
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: Laurent Pinchart <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
| -rw-r--r-- | drivers/gpu/drm/drm_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index 7dad7813fca1..c15c9b4540e1 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c @@ -305,7 +305,7 @@ void drm_minor_release(struct drm_minor *minor) * * ret = devm_drm_dev_init(&pdev->dev, drm, &driver_drm_driver); * if (ret) { - * kfree(drm); + * kfree(priv); * return ret; * } * drmm_add_final_kfree(drm, priv); |
