staging: drm/omap: Add error handling
authorEmil Goode <emilgoode@gmail.com>
Fri, 17 Aug 2012 16:53:26 +0000 (18:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 19:18:10 +0000 (12:18 -0700)
commitd4eb23a98f6c39ab0e5aa6abb67b615bb8973610
treee95c246087d290b25c0d4259b7deec53bc692a2d
parent79e3f02887feabcc2f2f6dd31c7c38ae776e3d7c
staging: drm/omap: Add error handling

This patch adds fail checks for kmalloc and kzalloc calls
and also adds a error path that frees allocated pages by
introducing a call to _drm_gem_put_pages.

Signed-off-by: Emil Goode <emilgoode@gmail.com>
Signed-off-by: Rob Clark <rob@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/omapdrm/omap_gem.c