pxelinux: open_file() returns a non-negative handle
authorMatt Fleming <matt.fleming@linux.intel.com>
Tue, 12 Jul 2011 15:12:48 +0000 (16:12 +0100)
committerMatt Fleming <matt.fleming@linux.intel.com>
Tue, 12 Jul 2011 15:24:06 +0000 (16:24 +0100)
commitbfc2d6c221b8d85dcfeb65cdb7d0f91f03020cf7
tree775e6e9c054a500e58f4e1b864d8e861f6984816
parent833f2859a77ed0d14ee197fe6e9d67044d5200c1
pxelinux: open_file() returns a non-negative handle

The usage of open_file() is wrong in core/fs/pxe/pxe.c. Any
non-negative return value indicates success, not just a return value
of zero.

This bug was introduced in commit ba4fefa9b52b "core: change
load_config() to open_config()". The bug causes pxelinux to fail to
open configuration files.

Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
core/fs/pxe/pxe.c