Fix coverity warnings

Change-Id: I37131f2d814a608fe9098daff83ff395f7ce99d7
Signed-off-by: Dave Barach <dave@barachs.net>
This commit is contained in:
Dave Barach
2016-07-26 10:30:50 -04:00
parent 0f1c29c9d4
commit ac0798db35
6 changed files with 16 additions and 3 deletions

View File

@ -164,6 +164,7 @@ svm_map_region_nolock (svm_map_region_args_t * a)
if (rp->version == 0)
{
clib_warning ("rp->version %d not %d", rp->version, SVM_VERSION);
munmap (rp, MMAP_PAGESIZE);
return (0);
}
/* Remap now that the region has been placed */