bridge: Avoid reading uninitialized data in bridge_pick_local_hw_addr().
authorBen Pfaff <blp@nicira.com>
Fri, 9 Sep 2011 17:12:32 +0000 (10:12 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 9 Sep 2011 23:40:16 +0000 (16:40 -0700)
commit0d1fe4a36287a2e107f96e50a6ab3556da3726a3
tree0eacb32bfde5c973f93ff8493ca7c21c8057f179
parent1de11730e612b09e28892880c2845185497a3741
bridge: Avoid reading uninitialized data in bridge_pick_local_hw_addr().

Commit 3a48ace3 "bridge: Make bridge_pick_local_hw_addr() easier to reason"
didn't initialize 'ea' before trying to compare against it.  We need to
check that an address has been found.

Found by valgrind.
vswitchd/bridge.c