summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/mlx/mlx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mlx/mlx.c b/sys/dev/mlx/mlx.c
index ea53741..4862323 100644
--- a/sys/dev/mlx/mlx.c
+++ b/sys/dev/mlx/mlx.c
@@ -1556,7 +1556,7 @@ mlx_enquire(struct mlx_softc *sc, int command, size_t bufsize, void (* complete)
/* we got an error, and we allocated a result */
if ((error != 0) && (result != NULL)) {
free(result, M_DEVBUF);
- mc->mc_data = NULL;
+ result = NULL;
}
return(result);
}
OpenPOWER on IntegriCloud