MLY_LOCK(sc);
if (mly_alloc_command(sc, &mc)) {
MLY_UNLOCK(sc);
error = ENOMEM;
return (ENOMEM); /* XXX Linux version will wait for a command */
goto out; /* XXX Linux version will wait for a command */
}
out:
if (mc->mc_data != NULL)
free(mc->mc_data, M_DEVBUF);
if (mc != NULL) {
mly_release_command(mc);
return(error);