Some clean-ups in fence_malloc() and fence_free()
authorDmitri Vorobiev <dmitri.vorobiev@movial.com>
Tue, 28 Sep 2010 11:42:02 +0000 (14:42 +0300)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Wed, 29 Sep 2010 06:15:12 +0000 (02:15 -0400)
commit10e13135c3538f0909f27eaacc17e9e13f199a7c
treea2583a5d6629ea1286007c5fe70de476e916a427
parentba693d2e88b6f4c871d804fb62d7435915c85dfc
Some clean-ups in fence_malloc() and fence_free()

This patch removes an unnecessary typecast of MAP_FAILED,
replaces an erroneous free() by the correct munmap() in the
error path for a failing mprotect(), and, finally, removes
redundant calls to mprotect() that aren't necessary, because
munmap() doesn't call for any specific memory protection.
test/utils.c