It is possible for the preloaded UNDI device to end up with no specified bus type, since it may not be recognised as either a PCI or an ISAPnP device. This will result in a bus type value of zero, which currently results in NULL being treated as a string pointer by netdev_fetch_bustype(). Fix by returning ENOENT if an unknown bus type is specified. Reported-by: Todd Stansell <todd@stansell.org> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
141 |
|
141 |
|
142 |
|
142 |
|
143 |
|
143 |
|
144 |
|
|
|
|
144 |
|
|
|
145 |
|
|
145 |
|
146 |
|
146 |
|
147 |
|
147 |
|
148 |
|