ivshmem: fix errors identified by hardening
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 7 Mar 2014 18:13:41 +0000 (10:13 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 17 Apr 2014 13:48:44 +0000 (15:48 +0200)
commit524f073a10fec965e3c7ffe49163c02709686617
tree3b81bf8b6841e9e9aeb256ac4fd10ef10e9c36f0
parent6383201503e168459c422749461b51b8745b1b73
ivshmem: fix errors identified by hardening

Need to pass mode argument to open with O_CREAT.
Must check return value from ftruncate().

Signed-off-by: Stephen Hemminger <shemming@brocade.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/linuxapp/eal/eal_ivshmem.c