avoid null ptr deref
Noticed by: Coverity Prevent analysis tool
This commit is contained in:
parent
4fe3104d70
commit
c5daf66e39
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user