From: jamal <hadi@cyberus.ca>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>, netdev@oss.sgi.com
Subject: patch2: del/get byid
Date: Wed, 27 Apr 2005 22:11:24 -0400 [thread overview]
Message-ID: <1114654284.7663.50.camel@localhost.localdomain> (raw)
[-- Attachment #1: Type: text/plain, Size: 149 bytes --]
This is definetely a bug. It doesnt seem like get/del by index worked.
For some reason i thought i tested this before and it worked.
cheers,
jamal
[-- Attachment #2: polid_p3 --]
[-- Type: text/plain, Size: 400 bytes --]
--- a/net/xfrm/xfrm_policy.c 2005/04/27 15:35:50 1.2
+++ b/net/xfrm/xfrm_policy.c 2005/04/27 20:23:07
@@ -417,7 +417,7 @@
struct xfrm_policy *pol, **p;
write_lock_bh(&xfrm_policy_lock);
- for (p = &xfrm_policy_list[id & 7]; (pol=*p)!=NULL; p = &pol->next) {
+ for (p = &xfrm_policy_list[dir]; (pol=*p)!=NULL; p = &pol->next) {
if (pol->index == id) {
xfrm_pol_hold(pol);
if (delete)
next reply other threads:[~2005-04-28 2:11 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-28 2:11 jamal [this message]
2005-04-28 2:14 ` patch2: del/get byid Herbert Xu
2005-04-28 2:23 ` jamal
2005-04-28 2:25 ` Herbert Xu
2005-04-28 2:39 ` jamal
2005-04-28 2:42 ` Herbert Xu
2005-04-28 2:55 ` jamal
2005-04-28 3:03 ` Herbert Xu
2005-04-28 3:24 ` jamal
2005-04-28 14:20 ` jamal
2005-04-28 23:11 ` Herbert Xu
2005-04-29 12:51 ` jamal
2005-04-29 23:20 ` jamal
2005-04-29 23:49 ` Herbert Xu
2005-04-30 0:01 ` jamal
2005-04-30 0:12 ` Herbert Xu
2005-04-30 0:35 ` jamal
2005-04-30 0:47 ` Herbert Xu
2005-04-30 1:08 ` jamal
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=1114654284.7663.50.camel@localhost.localdomain \
--to=hadi@cyberus.ca \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=netdev@oss.sgi.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;
as well as URLs for NNTP newsgroup(s).