Browse Source

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 18 years ago
parent
commit
4b77061881
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/arch/i386/drivers/net/undinet.c

+ 1
- 2
src/arch/i386/drivers/net/undinet.c View File

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

Loading…
Cancel
Save