pxelinux: open_file() returns a non-negative handle
authorMatt Fleming <matt.fleming@linux.intel.com>
Tue, 12 Jul 2011 15:21:37 +0000 (16:21 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 13 Jul 2011 03:01:03 +0000 (20:01 -0700)
commitaf8b6e9bdf9d7e9d059c1732ccd5d4007e5ca08c
tree457d01dd6e5d9fd88bf566b5ea800e20937dbcfe
parent8ae01800ff9f3d8a3dd199898d4e2d3c7a37b3c9
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>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/fs/pxe/pxe.c