cfm: Fix a memory allocation bug in cfm_get_remove_mpids().
authorGuolin Yang <gyang@nicira.com>
Wed, 4 Sep 2013 16:00:12 +0000 (09:00 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 4 Sep 2013 19:56:34 +0000 (12:56 -0700)
commit416e09ef5e61fd44b21d82187f167d6690837bba
tree4727be659abae123911e29ec4cdbccaf096849ed
parent60c2f2e32ed6355d485555f029111c2cc475f5ed
cfm: Fix a memory allocation bug in cfm_get_remove_mpids().

In cfm, when allocating the rmp array, the size is not calculated correctly
which cause the remote MPID not correctly updated in ovsdb.

This bug was introduced by commit 13b1b2ae70 (cfm: Make the CFM module
thread safe.).

Signed-off-by: Guolin Yang <gyang@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/cfm.c