staging: omapdrm/omap_gem_dmabuf.c: fix memory leakage
authorCong Ding <dinggnu@gmail.com>
Tue, 15 Jan 2013 19:46:50 +0000 (20:46 +0100)
committerRob Clark <robdclark@gmail.com>
Sat, 16 Feb 2013 22:38:05 +0000 (17:38 -0500)
commit32ac1a5286d56b3c822f4a1a8d0f7fc5d586de38
treebe3e30e91e66f5680b70dead956f42ae26548eca
parent238083ad5d67d1c9ba6e7158a027e834a48bb23b
staging: omapdrm/omap_gem_dmabuf.c: fix memory leakage

There is a memory leakage in variable sg if it goes to error.

Signed-off-by: Cong Ding <dinggnu@gmail.com>
Signed-off-by: Rob Clark <rob@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/omapdrm/omap_gem_dmabuf.c