drm/mgag200: check alloc_apertures() success in mga_vram_init()
authorTommi Rantala <tt.rantala@gmail.com>
Fri, 9 Nov 2012 09:19:36 +0000 (09:19 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Nov 2012 06:06:24 +0000 (16:06 +1000)
commit0a7fdc59fba559dfbce14963b32102125c49cb10
tree5185df71f82bb0a0bf4fe8dea0f7a066409e9bf8
parentbfb82ff0ee1dd0d1eed45ee25aa601f4ea5c54ac
drm/mgag200: check alloc_apertures() success in mga_vram_init()

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/mgag200/mgag200_main.c