memzone: enforce valid flags when reserving
authorDavid Marchand <david.marchand@redhat.com>
Tue, 12 Oct 2021 19:39:26 +0000 (21:39 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 15 Oct 2021 08:29:21 +0000 (10:29 +0200)
commitbc1a35fb3f5e08cfd62607a98c1bf8a48c231f5a
tree7ba0e6eb869f0e14b8473fa21211b6ee20b57b86
parentb240af8b10f961298149a86dbb53823334c5870d
memzone: enforce valid flags when reserving

If we do not enforce valid flags are passed by an application, this
application might face issues in the future when we add more flags.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Ray Kinsella <mdr@ashroe.eu>
app/test/test_memzone.c
lib/eal/common/eal_common_memzone.c