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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 21:19:55 +0000 (13:19 -0800)
commitcce17b457b3b346e5777ec770feb324663ea2b9b
treeff56fc0ed4bab466e946fd7dc35c400de919a53d
parent4ee723a96f9313d67e88c7a9d3ae6162d2308f2d
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