[PATCH v2] drm/amdgpu: fix multiple memory leaks
Sven Van Asbroeck
thesven73 at gmail.com
Wed Sep 18 19:45:32 UTC 2019
On Wed, Sep 18, 2019 at 3:09 PM Navid Emamdoost
<navid.emamdoost at gmail.com> wrote:
>
> i2s_pdata = kcalloc(3, sizeof(struct i2s_platform_data), GFP_KERNEL);
> if (i2s_pdata == NULL) {
> - kfree(adev->acp.acp_res);
> - kfree(adev->acp.acp_cell);
> - return -ENOMEM;
> + ret = -ENOMEM;
> + goto out3;
> }
I don't see a corresponding kfree() for i2s_pdata in acp_hw_fini().
Could this be a memory leak?
More information about the dri-devel
mailing list