From: Len Brown <lenb@kernel.org>
To: akpm@osdl.org
Cc: linux-acpi@vger.kernel.org, akinobu.mita@gmail.com
Subject: Re: [patch 02/19] acpi: fix single linked list manipulation
Date: Wed, 20 Dec 2006 00:43:27 -0500 [thread overview]
Message-ID: <200612200043.27289.lenb@kernel.org> (raw)
In-Reply-To: <200612192056.kBJKuAIb010011@shell0.pdx.osdl.net>
Applied.
thanks,
-Len
On Tuesday 19 December 2006 15:56, akpm@osdl.org wrote:
> From: Akinobu Mita <akinobu.mita@gmail.com>
>
> Fix single linked list manipulation for sub_driver. If the remving entry
> is not on the head of the sub_driver list, it goes into infinate loop.
>
> Though that infinite loop doesn't happen. Because the only user of
> acpi_pci_register_dirver() is acpiphp.
>
> Cc: Len Brown <len.brown@intel.com>
> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
> Signed-off-by: Andrew Morton <akpm@osdl.org>
> ---
>
> drivers/acpi/pci_root.c | 9 +++++----
> 1 files changed, 5 insertions(+), 4 deletions(-)
>
> diff -puN drivers/acpi/pci_root.c~acpi-fix-single-linked-list-manipulation drivers/acpi/pci_root.c
> --- a/drivers/acpi/pci_root.c~acpi-fix-single-linked-list-manipulation
> +++ a/drivers/acpi/pci_root.c
> @@ -98,11 +98,12 @@ void acpi_pci_unregister_driver(struct a
>
> struct acpi_pci_driver **pptr = &sub_driver;
> while (*pptr) {
> - if (*pptr != driver)
> - continue;
> - *pptr = (*pptr)->next;
> - break;
> + if (*pptr == driver)
> + break;
> + pptr = &(*pptr)->next;
> }
> + BUG_ON(!*pptr);
> + *pptr = (*pptr)->next;
>
> if (!driver->remove)
> return;
> _
>
prev parent reply other threads:[~2006-12-20 5:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-19 20:56 [patch 02/19] acpi: fix single linked list manipulation akpm
2006-12-20 5:43 ` Len Brown [this message]
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=200612200043.27289.lenb@kernel.org \
--to=lenb@kernel.org \
--cc=akinobu.mita@gmail.com \
--cc=akpm@osdl.org \
--cc=linux-acpi@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.