[ovs-dev] [PATCH] perf-counter: fix segfaults on non-linux platforms

Ben Pfaff blp at nicira.com
Fri Jul 24 16:20:56 UTC 2015


On Fri, Jul 24, 2015 at 12:22:56PM -0300, Thadeu Lima de Souza Cascardo wrote:
> Commit 0eee08dbddea520536197657da7a0b (perf-counter: simplify the
> performance macro) introduces the PERF macro, which is empty for non-linux
> platforms.
> 
> Added to commit bc487aeff2d6823c088d6e4499e0f53e6651523b (ovsdb: Add per
> transaction commit instruction counter), that uses such macro, it causes
> segfaults, since it makes ovsdb_txn_commit return an uninitialized pointer as
> error.
> 
> Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo at redhat.com>

Good catch, thank you!

I added {} around the macro expansion to make it better match the Linux
expansion and applied this to master.



More information about the dev mailing list