]> git.openfabrics.org - ~emulex/infiniband.git/commit
agp: fix scratch page cleanup
authorMichal Kubecek <mkubecek@suse.cz>
Wed, 25 Jan 2012 15:51:05 +0000 (16:51 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 26 Jan 2012 18:36:48 +0000 (18:36 +0000)
commit590dfe2f3bbbbeee806ee91bef68ba2a6afc16d2
tree133e0085397d104d5a4bad8cd8afed3df6f17138
parentc8fe74ae9a7285767cda1a053cfe806d67f77227
agp: fix scratch page cleanup

In error cleanup of agp_backend_initialize() and in agp_backend_cleanup(),
agp_destroy_page() is passed virtual address of the scratch page. This
leads to a kernel warning if the initialization fails (or upon regular
cleanup) as pointer to struct page should be passed instead.

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/char/agp/backend.c