aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorLance Richardson2016-03-22 14:56:57 -0400
committerDavid S. Miller2016-03-22 15:59:23 -0400
commit4cfc86f3dae6ca38ed49cdd78f458a03d4d87992 (patch)
tree751d08a8a62e8ea5284b0b277675a5d451574897 /drivers/mtd/nand
parent6e9bdc7271ac8e2af58a2c9a87551d9bd49337a1 (diff)
ipv4: initialize flowi4_flags before calling fib_lookup()
Field fl4.flowi4_flags is not initialized in fib_compute_spec_dst() before calling fib_lookup(), which means fib_table_lookup() is using non-deterministic data at this line: if (!(flp->flowi4_flags & FLOWI_FLAG_SKIP_NH_OIF)) { Fix by initializing the entire fl4 structure, which will prevent similar issues as fields are added in the future by ensuring that all fields are initialized to zero unless explicitly initialized to another value. Fixes: 58189ca7b2741 ("net: Fix vti use case with oif in dst lookups") Suggested-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: Lance Richardson <lrichard@redhat.com> Acked-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/mtd/nand')
0 files changed, 0 insertions, 0 deletions