Explorar el Código

Pick up the return status code from the correct place now that we

don't overwrite the parameter block until *after* the debug code.
tags/v0.9.3
Michael Brown hace 18 años
padre
commit
4b77061881
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1
    2
      src/arch/i386/drivers/net/undinet.c

+ 1
- 2
src/arch/i386/drivers/net/undinet.c Ver fichero

@@ -147,7 +147,6 @@ static SEGOFF16_t __data16 ( undinet_entry_point );
147 147
  */
148 148
 static int undinet_call ( struct undi_nic *undinic, unsigned int function,
149 149
 			  void *params, size_t params_len ) {
150
-	union u_PXENV_ANY *pxenv_any = params;
151 150
 	PXENV_EXIT_t exit;
152 151
 	int discard_b, discard_D;
153 152
 	int rc;
@@ -188,7 +187,7 @@ static int undinet_call ( struct undi_nic *undinic, unsigned int function,
188 187
 	if ( exit == PXENV_EXIT_SUCCESS ) {
189 188
 		rc = 0;
190 189
 	} else {
191
-		rc = -pxenv_any->Status;
190
+		rc = -undinet_params.Status;
192 191
 		/* Paranoia; don't return success for the combination
193 192
 		 * of PXENV_EXIT_FAILURE but PXENV_STATUS_SUCCESS
194 193
 		 */

Loading…
Cancelar
Guardar