drm/cirrus: check alloc_apertures() success in cirrus_kick_out_firmware_fb()
authorTommi Rantala <tt.rantala@gmail.com>
Fri, 9 Nov 2012 09:19:35 +0000 (09:19 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Nov 2012 06:06:23 +0000 (16:06 +1000)
commitbfb82ff0ee1dd0d1eed45ee25aa601f4ea5c54ac
tree9501354b485d137f8c58b4fb27f88dea9c3939f9
parent91926741ecd28dc246875a39a908c2f6aadb2542
drm/cirrus: check alloc_apertures() success in cirrus_kick_out_firmware_fb()

Check for alloc_apertures() memory allocation failure, and propagate an
error code in case the allocation failed.

Signed-off-by: Tommi Rantala <tt.rantala@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/cirrus/cirrus_drv.c