View | Details | Raw Unified | Return to bug 217747 | Differences between
and this patch

Collapse All | Expand All

(-)mly.c (working copy) (-7 / +4 lines)
Lines 2892-2899 Link Here
2892
    MLY_LOCK(sc);
2892
    MLY_LOCK(sc);
2893
    if (mly_alloc_command(sc, &mc)) {
2893
    if (mly_alloc_command(sc, &mc)) {
2894
       MLY_UNLOCK(sc);
2894
       MLY_UNLOCK(sc);
2895
       error = ENOMEM;
2895
       return (ENOMEM);        /* XXX Linux version will wait for a command */
2896
       goto out;               /* XXX Linux version will wait for a command */
2897
    }
2896
    }
2898
    MLY_UNLOCK(sc);
2897
    MLY_UNLOCK(sc);
2899
2898
Lines 2952-2962 Link Here
2952
 out:
2951
 out:
2953
    if (mc->mc_data != NULL)
2952
    if (mc->mc_data != NULL)
2954
       free(mc->mc_data, M_DEVBUF);
2953
       free(mc->mc_data, M_DEVBUF);
2955
    if (mc != NULL) {
2954
    MLY_LOCK(sc);
2956
       MLY_LOCK(sc);
2955
    mly_release_command(mc);
2957
       mly_release_command(mc);
2956
    MLY_UNLOCK(sc);
2958
       MLY_UNLOCK(sc);
2959
    }
2960
    return(error);
2957
    return(error);
2961
}
2958
}
2962
2959

Return to bug 217747