drm/ast: free correct pointer in astfb_create() error paths
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>
Mon, 14 Nov 2016 03:03:59 +0000 (14:03 +1100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 14 Nov 2016 06:45:16 +0000 (07:45 +0100)
commit554dd692afd5d449168b5007841742db4a2ed17b
tree0f2c05c8c029df52fc23ec2ac3288aeccc96e0b7
parentdfeb693d5a5dab938fc9d371e6870da1b4c4b4cb
drm/ast: free correct pointer in astfb_create() error paths

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@au1.ibm.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161114030359.27852-1-andrew.donnellan@au1.ibm.com
drivers/gpu/drm/ast/ast_fb.c