From: roel kluin <roel.kluin@gmail.com>
To: David Miller <davem@davemloft.net>
Cc: ecashin@coraid.com, linux-kernel@vger.kernel.org,
akpm@linux-foundation.org
Subject: Re: [PATCH] aoe: error printed 1 too early
Date: Wed, 25 Feb 2009 23:29:13 +0100 [thread overview]
Message-ID: <25e057c00902251429x296a5bfcjfd3d90b7989017f1@mail.gmail.com> (raw)
In-Reply-To: <20090225.140136.74121676.davem@davemloft.net>
2009/2/25 David Miller <davem@davemloft.net>:
> From: Ed Cashin <ecashin@coraid.com>
> Date: Wed, 25 Feb 2009 12:09:02 -0500
>
>> Sounds like a good catch. Did you find it because you saw the "cannot
>> free skb" message?
>
> He's finding these by looking for them in the code, not by
> actually triggering the condition.
>
Actually I made all functions a single line and then run some
bash scripts that parses pseudocode like:
echo "INFO: \7 reaches \9 - 1 after loop"
bli "
if \((${npz}[&|][&|])?
--($w) $em?[<=] ($K|$w|$d)
((&&|\|\|)$(nestedcode "()"))?\)
(\{
($(nestedcode "{}"))*
break ;
\}|
break ;
)
$ccode
(
$Q(\7 [=$em]= \9|\7 (>=|<) \9)
|
return \7 ;
)
"
This gives me a match like:
while(...) {
if (--i < 0)
break;
...
}
...
if (i != 0)
...
which is wrong since i reaches -1.
next prev parent reply other threads:[~2009-02-25 22:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-25 13:38 Roel Kluin
2009-02-25 17:09 ` Ed Cashin
2009-02-25 22:01 ` David Miller
2009-02-25 22:19 ` Ed Cashin
2009-02-25 22:29 ` roel kluin [this message]
2009-03-04 8:08 ` David Miller
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=25e057c00902251429x296a5bfcjfd3d90b7989017f1@mail.gmail.com \
--to=roel.kluin@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=ecashin@coraid.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®