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