From: Corey Minyard <minyard@acm.org>
To: Andrew Morton <akpm@osdl.org>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
OpenIPMI Developers <openipmi-developer@lists.sourceforge.net>,
Carol Hebert <cah@us.ibm.com>
Subject: Re: [Patch 2/12] IPMI: remove interface number limits
Date: Tue, 05 Dec 2006 07:50:47 -0600 [thread overview]
Message-ID: <45757937.3030307@acm.org> (raw)
In-Reply-To: <20061203132605.ee8028a5.akpm@osdl.org>
Andrew Morton wrote:
> On Fri, 1 Dec 2006 22:24:22 -0600
> Corey Minyard <minyard@acm.org> wrote:
>
>
>> This patch removes the arbitrary limit of number of IPMI interfaces.
>> This has been tested with 8 interfaces.
>>
>> Signed-off-by: Corey Minyard <minyard@acm.org>
>> Cc: Carol Hebert <cah@us.ibm.com>
>>
>> ..
>>
>> +struct watcher_entry {
>> + struct list_head link;
>> + int intf_num;
>> +};
>> +
>> int ipmi_smi_watcher_register(struct ipmi_smi_watcher *watcher)
>> {
>> - int i;
>> - unsigned long flags;
>> + ipmi_smi_t intf;
>> + struct list_head to_deliver = LIST_HEAD_INIT(to_deliver);
>> + struct watcher_entry *e, *e2;
>> +
>> + mutex_lock(&ipmi_interfaces_mutex);
>> +
>> + list_for_each_entry_rcu(intf, &ipmi_interfaces, link) {
>> + if (intf->intf_num == -1)
>> + continue;
>> + e = kmalloc(sizeof(*e), GFP_KERNEL);
>> + if (!e)
>> + goto out_err;
>>
>
> You miss a mutex_unlock(&ipmi_interfaces_mutex) here
>
This is actually fixed in patch 4 (ipmi-system-interface-hotplug.patch)
-Corey
next prev parent reply other threads:[~2006-12-05 15:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-02 4:24 [Patch 2/12] IPMI: remove interface number limits Corey Minyard
2006-12-03 21:26 ` Andrew Morton
2006-12-05 13:50 ` Corey Minyard [this message]
2006-12-22 1:02 ` Paul E. McKenney
2006-12-28 18:18 ` Corey Minyard
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=45757937.3030307@acm.org \
--to=minyard@acm.org \
--cc=akpm@osdl.org \
--cc=cah@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=openipmi-developer@lists.sourceforge.net \
/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