examples/exception_path: fix shift operation in lcore setup
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Fri, 15 Apr 2016 15:29:40 +0000 (17:29 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 27 Apr 2016 15:41:46 +0000 (17:41 +0200)
commitea977ff1cb0b8afe03e994b3a8346696cbf27ea2
tree177903ab0c04e59a2177eeafbb22688cf28b6287
parent1ef6012ec1dde4fec58353ffdeb7a79e34b8a4c0
examples/exception_path: fix shift operation in lcore setup

CID: #30688
The operaton may have an undefined behavior or yield to an unexpected result.

In setup_port_lcore_affinities: A bit shift operation has a shift amount
which is too large or has a negative value.

Fixes: af75078fece3 ("first public release")

Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
examples/exception_path/main.c