]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[netdevice] Mark devices as open only if opening succeeds
authorPiotr Jaroszyński <p.jaroszynski@gmail.com>
Sun, 27 Mar 2011 17:26:28 +0000 (19:26 +0200)
committerMichael Brown <mcb30@ipxe.org>
Sun, 27 Mar 2011 17:59:13 +0000 (18:59 +0100)
commit8ab2f51997db80c88d098844ad5a9af5736d1c9e
treeb37c86f1d4a34f8c9e9054ca59a0fcf35454c038
parent1cc991e132bcd98f8e93dcc138e5a74d5a0402df
[netdevice] Mark devices as open only if opening succeeds

netdev_close() assumes that devices that are open are on the
open_list, which wasn't true if device specific opening failed.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/netdevice.c