From: Florian Mickler <florian@mickler.org>
To: akpm@linux-foundation.org
Cc: Florian Mickler <florian@mickler.org>,
airlied@linux.ie, randy.dunlap@oracle.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] amd64-agp: fix crash at second module load
Date: Wed, 23 Feb 2011 09:26:19 +0100 [thread overview]
Message-ID: <20110223092619.4dfa7480@schatten.dmk.lab> (raw)
In-Reply-To: <1297117771-12392-1-git-send-email-florian@mickler.org>
Hi Andrew,
I sent this to Dave Airlie because that is what MAINTAINERS says, but
that is probably the wrong receipient?
Regards,
Flo
On Mon, 7 Feb 2011 23:29:31 +0100
Florian Mickler <florian@mickler.org> wrote:
> 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>
> ---
> drivers/char/agp/amd64-agp.c | 9 +++++++--
> 1 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/char/agp/amd64-agp.c b/drivers/char/agp/amd64-agp.c
> index 9252e85..780498d 100644
> --- a/drivers/char/agp/amd64-agp.c
> +++ b/drivers/char/agp/amd64-agp.c
> @@ -773,18 +773,23 @@ int __init agp_amd64_init(void)
> #else
> printk(KERN_INFO PFX "You can boot with agp=try_unsupported\n");
> #endif
> + pci_unregister_driver(&agp_amd64_pci_driver);
> return -ENODEV;
> }
>
> /* First check that we have at least one AMD64 NB */
> - if (!pci_dev_present(amd_nb_misc_ids))
> + if (!pci_dev_present(amd_nb_misc_ids)) {
> + pci_unregister_driver(&agp_amd64_pci_driver);
> return -ENODEV;
> + }
>
> /* Look for any AGP bridge */
> agp_amd64_pci_driver.id_table = agp_amd64_pci_promisc_table;
> err = driver_attach(&agp_amd64_pci_driver.driver);
> - if (err == 0 && agp_bridges_found == 0)
> + if (err == 0 && agp_bridges_found == 0) {
> + pci_unregister_driver(&agp_amd64_pci_driver);
> err = -ENODEV;
> + }
> }
> return err;
> }
next prev parent reply other threads:[~2011-02-23 8:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-07 22:29 [PATCH] amd64-agp: fix crash at second module load Florian Mickler
2011-02-23 8:26 ` Florian Mickler [this message]
2011-02-23 8:28 ` Dave Airlie
2011-02-23 8:42 ` Florian Mickler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110223092619.4dfa7480@schatten.dmk.lab \
--to=florian@mickler.org \
--cc=airlied@linux.ie \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox