diff options
author | sam <sam@FreeBSD.org> | 2005-03-31 21:53:21 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-03-31 21:53:21 +0000 |
commit | c5daf66e3905d8d518aac1c24bee4ff90b62b8a1 (patch) | |
tree | 5af162668854549496eac38fed1d308742dc7989 /sys/dev/mlx | |
parent | 4fe3104d70588fc706c6e129b84cd2cf5b300e28 (diff) | |
download | FreeBSD-src-c5daf66e3905d8d518aac1c24bee4ff90b62b8a1.zip FreeBSD-src-c5daf66e3905d8d518aac1c24bee4ff90b62b8a1.tar.gz |
avoid null ptr deref
Noticed by: Coverity Prevent analysis tool
Diffstat (limited to 'sys/dev/mlx')
-rw-r--r-- | sys/dev/mlx/mlx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mlx/mlx.c b/sys/dev/mlx/mlx.c index 31f4d09..2f2144a 100644 --- a/sys/dev/mlx/mlx.c +++ b/sys/dev/mlx/mlx.c @@ -1974,7 +1974,7 @@ mlx_user_command(struct mlx_softc *sc, struct mlx_usercommand *mu) /* get ourselves a command and copy in from user space */ if ((mc = mlx_alloccmd(sc)) == NULL) - goto out; + return(error); bcopy(mu->mu_command, mc->mc_mailbox, sizeof(mc->mc_mailbox)); debug(0, "got command buffer"); |