diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-01-22 01:18:45 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-01-22 01:18:45 +0000 |
commit | d32d6f51ac0a01d6d56a0a9a105f7a61ab76ba76 (patch) | |
tree | b67a0e16ae000083b0ddf6312941353698cd389b /sys/arch/octeon/dev/cn30xxipd.c | |
parent | 13b2530b18eb0fb1cb7b0f91683e7a101a8ec88e (diff) |
Add back the initialisation of a cn30xxipd_offload() variable removed
in rev 1.6 so SET doesn't or bits into uninitialised memory.
ok visa@
Diffstat (limited to 'sys/arch/octeon/dev/cn30xxipd.c')
-rw-r--r-- | sys/arch/octeon/dev/cn30xxipd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/octeon/dev/cn30xxipd.c b/sys/arch/octeon/dev/cn30xxipd.c index ca040c1fb23..197c005117c 100644 --- a/sys/arch/octeon/dev/cn30xxipd.c +++ b/sys/arch/octeon/dev/cn30xxipd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cn30xxipd.c,v 1.6 2015/10/24 05:35:42 visa Exp $ */ +/* $OpenBSD: cn30xxipd.c,v 1.7 2016/01/22 01:18:44 jsg Exp $ */ /* * Copyright (c) 2007 Internet Initiative Japan, Inc. @@ -166,6 +166,8 @@ cn30xxipd_offload(uint64_t word2, uint16_t *rcflags) if (ISSET(word2, PIP_WQE_WORD2_IP_NI)) return; + cflags = 0; + /* Check IP checksum status. */ if (!ISSET(word2, PIP_WQE_WORD2_IP_V6) && !ISSET(word2, PIP_WQE_WORD2_IP_IE)) |