hgafb: resource management fix
commit630c270183133ac25bef8c8d726ac448df9b169a
authorKrzysztof Helt <krzysztof.h1@wp.pl>
Thu, 12 Jun 2008 22:21:29 +0000 (12 15:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 13 Jun 2008 01:05:40 +0000 (12 18:05 -0700)
treee00d128c2acab7571b43ef013f26a3bff86a57e2
parent69c5ddf58a03da3686691ad2f293bc79fd977c10
hgafb: resource management fix

Release ports which are requested during detection which are not freed if
there is no hga card.  Otherwise there is a crash during cat /proc/ioports
command.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/hgafb.c