sandbox: eth-raw: Make sure descriptors are always initialized
authorJoe Hershberger <joe.hershberger@ni.com>
Mon, 2 Jul 2018 19:47:47 +0000 (14:47 -0500)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 26 Jul 2018 19:08:17 +0000 (14:08 -0500)
commit50ed0ef832c55a7d088df3d96b7046cf6acf0ff6
tree5b394ab224c7162c373631d14ead423e9b1c714e
parent68acb51f442f08152f79772af3d41ff1e4c817cd
sandbox: eth-raw: Make sure descriptors are always initialized

If we let descriptors equal 0, we can end up closing STDIN. Make sure
they start out as -1.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/eth-raw-os.c