[ovs-git] [openvswitch/ovs] 46a140: ovs-numa: Fix a missing initialization.

GitHub noreply at github.com
Mon Sep 8 20:08:19 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 46a14035521c52bf38d6e32927a8e33f19c76fff
      https://github.com/openvswitch/ovs/commit/46a14035521c52bf38d6e32927a8e33f19c76fff
  Author: Alex Wang <alexw at nicira.com>
  Date:   2014-09-08 (Mon, 08 Sep 2014)

  Changed paths:
    M lib/ovs-numa.c

  Log Message:
  -----------
  ovs-numa: Fix a missing initialization.

This commit updates the pointer to 'struct numa_node'
when initializing the 'struct cpu_core'.

Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: 3d76b86c6f0b56ee8649356c49e89dd5022451b2
      https://github.com/openvswitch/ovs/commit/3d76b86c6f0b56ee8649356c49e89dd5022451b2
  Author: Alex Wang <alexw at nicira.com>
  Date:   2014-09-08 (Mon, 08 Sep 2014)

  Changed paths:
    M ofproto/ofproto-dpif-upcall.c

  Log Message:
  -----------
  ofproto-dpif-upcall: Fix a free of uninitialized memory.

On current master, when 'upcall_receive()' returns error, the
ofpbuf 'upcall->put_actions' is uninitialized.  In some usecase,
the failure of 'upcall_receive()' will cause uninitialize of
'upcall->put_actions' and free of uninitialized pointer.

This commit fixes the issue by making the caller not conduct
the uninitialize of the 'upcall' when there is error.

Found by inspection.

Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


Compare: https://github.com/openvswitch/ovs/compare/800711c3c2c7...3d76b86c6f0b


More information about the git mailing list