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:53:10 +0000 (12:53 -0700)
commit95e22d6798a07f01ad445263f44d6743b13bc2ce
treed40d4f64831156caaf8a12d5cf9b60eab01e2eb0
parentd6d5bbc9e43f5b6ce28d1d8c0df06b7cc3cb6db9
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