]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/ttm: fix small memory leak in ttm_memory.c
authorDan Carpenter <error27@gmail.com>
Sat, 28 Nov 2009 10:30:32 +0000 (12:30 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 3 Dec 2009 23:03:33 +0000 (09:03 +1000)
commit46a79fa08a9a890a12cf9ec3ce51800911a907bf
treef3d992722fae66bfcd7a27239a3e3758bfcb6d60
parent1a95916f5465ad6c91398f17924949db7e0b5c36
drm/ttm: fix small memory leak in ttm_memory.c

I moved the allocation until after the check for (si->totalhigh == 0).

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-By: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_memory.c