From: Malahal Naineni <malahal@us.ibm.com>
To: lvm-devel@redhat.com
Subject: [PATCH] Use correct array size!
Date: Fri, 12 Mar 2010 16:17:17 -0800 [thread overview]
Message-ID: <8db1b9ee17a8c097a7b3.1268439437@localhost> (raw)
Signed-off-by: Malahal Naineni (malahal at us.ibm.com)
diff -r 5d08ba4ae8e8 -r 8db1b9ee17a8 daemons/dmeventd/dmeventd.c
--- a/daemons/dmeventd/dmeventd.c Thu Mar 11 16:05:21 2010 -0800
+++ b/daemons/dmeventd/dmeventd.c Fri Mar 12 16:15:25 2010 -0800
@@ -1369,7 +1369,7 @@ static int _handle_request(struct dm_eve
{ DM_EVENT_CMD_ACTIVE, _active},
}, *req;
- for (req = requests; req < requests + sizeof(requests); req++)
+ for (req = requests; req < requests + sizeof(requests) / sizeof(requests[0]); req++)
if (req->cmd == msg->cmd)
return req->f(message_data);
next reply other threads:[~2010-03-13 0:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-13 0:17 Malahal Naineni [this message]
2010-03-15 9:03 ` [PATCH] Use correct array size! Zdenek Kabelac
2010-03-15 9:05 ` Zdenek Kabelac
2010-03-15 9:10 ` Zdenek Kabelac
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=8db1b9ee17a8c097a7b3.1268439437@localhost \
--to=malahal@us.ibm.com \
--cc=lvm-devel@redhat.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 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.