amd64-agp: fix crash at second module load
authorFlorian Mickler <florian@mickler.org>
Mon, 7 Feb 2011 22:29:31 +0000 (23:29 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 23 Feb 2011 08:29:17 +0000 (18:29 +1000)
commit49495d44dfa4ba76cf7d1ed8fe84746dd9552255
treebce82f11cf9630f7774e051d557596f96fac225c
parent45e4039c3aea597ede44a264cea322908cdedfe9
amd64-agp: fix crash at second module load

The module forgot to sometimes unregister some resources.

This fixes Bug #22882.

[Patch updated to 2.6.38-rc3 by Randy Dunlap.]
Tested-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Florian Mickler <florian@mickler.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/char/agp/amd64-agp.c