Commit:     1f8170b0ecd8363847792b3b1f269e9d8e10391a
Parent:     9055fa1f3ded5ad858a55ae18439ed55227ee7eb
Author:     Pavel Emelyanov <[EMAIL PROTECTED]>
AuthorDate: Mon Nov 19 22:51:24 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Nov 19 22:51:24 2007 -0800

    [PKTGEN]: Fix double unlock of xfrm_state->lock
    The pktgen_output_ipsec() function can unlock this lock twice
    due to merged error and plain paths. Remove one of the calls
    to spin_unlock.
    Other possible solution would be to place "return 0" right
    after the first unlock, but at this place the err is known
    to be 0, so these solutions are the same except for this one
    makes the code shorter.
    Signed-off-by: Pavel Emelyanov <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 net/core/pktgen.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index de33f36..285ec3e 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -2463,8 +2463,6 @@ static int pktgen_output_ipsec(struct sk_buff *skb, 
struct pktgen_dev *pkt_dev)
        x->curlft.bytes +=skb->len;
-       spin_unlock(&x->lock);
        return err;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to