diff options
author | David S. Miller <davem@davemloft.net> | 2008-10-31 08:17:34 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-31 08:17:34 +0100 |
commit | a1744d3bee19d3b9cbfb825ab316a101b9c9f109 (patch) | |
tree | c0e2324c09beca0eb5782eb5abf241ea2b7a4a11 /net/ipv4/cipso_ipv4.c | |
parent | pci: use pci_ioremap_bar() in drivers/net (diff) | |
parent | xfrm: do not leak ESRCH to user space (diff) | |
download | linux-a1744d3bee19d3b9cbfb825ab316a101b9c9f109.tar.xz linux-a1744d3bee19d3b9cbfb825ab316a101b9c9f109.zip |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/wireless/p54/p54common.c
Diffstat (limited to 'net/ipv4/cipso_ipv4.c')
-rw-r--r-- | net/ipv4/cipso_ipv4.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/ipv4/cipso_ipv4.c b/net/ipv4/cipso_ipv4.c index 4bcec7f77251..e52799047a5f 100644 --- a/net/ipv4/cipso_ipv4.c +++ b/net/ipv4/cipso_ipv4.c @@ -2062,9 +2062,10 @@ int cipso_v4_skbuff_setattr(struct sk_buff *skb, u32 opt_len; int len_delta; - buf_len = cipso_v4_genopt(buf, buf_len, doi_def, secattr); - if (buf_len < 0) - return buf_len; + ret_val = cipso_v4_genopt(buf, buf_len, doi_def, secattr); + if (ret_val < 0) + return ret_val; + buf_len = ret_val; opt_len = (buf_len + 3) & ~3; /* we overwrite any existing options to ensure that we have enough |