avoid null ptr deref

Noticed by:	Coverity Prevent analysis tool
This commit is contained in:
Sam Leffler 2005-03-31 21:53:21 +00:00
parent aadbcea379
commit 001ea8fba8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144433

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