viafb: Fix initialization error paths
authorJonathan Corbet <corbet@lwn.net>
Fri, 30 Apr 2010 16:03:57 +0000 (10:03 -0600)
committerJonathan Corbet <corbet@lwn.net>
Fri, 7 May 2010 23:17:40 +0000 (17:17 -0600)
commit8bbf50fe9c0fb8d83b993ae6d88a4ce27d81b999
treee49180692af9f2a2ccb5455dc1265509c129aa72
parent27fe971d08b43f649358745a55f3c48ac6f413f8
viafb: Fix initialization error paths

Properly localize error cleanup, and make sure that the iomem regions are
unmapped if framebuffer initialization fails.

Reported-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
drivers/video/via/via-core.c