|
@@ -65,6 +65,7 @@ static int pxe_exec ( struct image *image ) {
|
65
|
65
|
image );
|
66
|
66
|
return -ENODEV;
|
67
|
67
|
}
|
|
68
|
+ netdev_get ( netdev );
|
68
|
69
|
|
69
|
70
|
/* Activate PXE */
|
70
|
71
|
pxe_activate ( netdev );
|
|
@@ -81,6 +82,12 @@ static int pxe_exec ( struct image *image ) {
|
81
|
82
|
/* Deactivate PXE */
|
82
|
83
|
pxe_deactivate();
|
83
|
84
|
|
|
85
|
+ /* Try to reopen network device. Ignore errors, since the NBP
|
|
86
|
+ * may have called PXENV_STOP_UNDI.
|
|
87
|
+ */
|
|
88
|
+ netdev_open ( netdev );
|
|
89
|
+ netdev_put ( netdev );
|
|
90
|
+
|
84
|
91
|
return rc;
|
85
|
92
|
}
|
86
|
93
|
|