Re: [PATCH RESEND] drm/ast: free correct pointer in astfb_create() error paths

From: Andrew Donnellan
Date: Mon Sep 19 2016 - 22:55:06 EST


On 20/09/16 11:56, Andrew Donnellan wrote:
In the err_free_vram and err_release_fbi error paths in astfb_create(), we
attempt to free afbdev->sysram. The only jumps to these error paths occur
before we assign afbdev->sysram = sysram. Free sysram instead.

Signed-off-by: Andrew Donnellan <andrew.donnellan@xxxxxxxxxxx>

---

Found by Coverity Scan. Compile tested only.

Resending as it looks like this didn't hit dri-devel.

It did show up after all :)

--
Andrew Donnellan OzLabs, ADL Canberra
andrew.donnellan@xxxxxxxxxxx IBM Australia Limited