[PATCH] fix typo in 2.4 ipsec backport

Patrick McHardy (kaber@trash.net)
Tue, 13 May 2003 04:28:09 +0200


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-15676-1052792946-0001-2
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

This patch fixes a 0x10-ptr dereference in __xfrm4_find_acq ;)

0x231 <__xfrm4_find_acq+241>: incl 0x10

Best regards,
Patrick

--=_courier-15676-1052792946-0001-2
Content-Type: text/plain; name="xfrm4_state-typo.diff"; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="xfrm4_state-typo.diff"

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1210 -> 1.1211
# net/ipv4/xfrm4_state.c 1.3 -> 1.4
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/05/13 kaber@trash.net 1.1211
# [IPSEC] fix typo
# --------------------------------------------
#
diff -Nru a/net/ipv4/xfrm4_state.c b/net/ipv4/xfrm4_state.c
--- a/net/ipv4/xfrm4_state.c Tue May 13 04:22:50 2003
+++ b/net/ipv4/xfrm4_state.c Tue May 13 04:22:50 2003
@@ -101,7 +101,7 @@
x0->lft.hard_add_expires_seconds = XFRM_ACQ_EXPIRES;
xfrm_state_hold(x0);
mod_timer(&x0->timer, jiffies + XFRM_ACQ_EXPIRES*HZ);
- xfrm_state_hold(0);
+ xfrm_state_hold(x0);
list_add_tail(&x0->bydst, xfrm4_state_afinfo.state_bydst+h);
wake_up(&km_waitq);
}

--=_courier-15676-1052792946-0001-2--