diff options
author | Haiyang Tan <haiyangtan@tencent.com> | 2018-10-15 06:17:55 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-10-16 11:37:49 +0000 |
commit | a5ab5034f4b50fc5a19ccf8910c91613e6a52f5a (patch) | |
tree | 7ada95f1671e1f5b525355a6f90e6456813a012c /src/svm/ssvm.c | |
parent | e9239c978277d838c0c5ca0ad3076ef85d15138a (diff) |
Fix coverity issue for potentially overflowing of page size
Change-Id: I2779626d745badb63386efcf729da7a094a4f297
Signed-off-by: Haiyang Tan <haiyangtan@tencent.com>
Diffstat (limited to 'src/svm/ssvm.c')
-rw-r--r-- | src/svm/ssvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svm/ssvm.c b/src/svm/ssvm.c index 03451e66d15..7fa9b258729 100644 --- a/src/svm/ssvm.c +++ b/src/svm/ssvm.c @@ -248,7 +248,7 @@ ssvm_master_init_memfd (ssvm_private_t * memfd) memfd->my_pid = getpid (); memfd->i_am_master = 1; - page_size = 1 << alloc.log2_page_size; + page_size = 1ull << alloc.log2_page_size; sh = memfd->sh; sh->master_pid = memfd->my_pid; sh->ssvm_size = memfd->ssvm_size; |