avoid null ptr deref

Noticed by:	Coverity Prevent analysis tool
This commit is contained in:
sam 2005-03-31 21:53:21 +00:00
parent 4fe3104d70
commit c5daf66e39

View File

@ -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");