lkml.org 
[lkml]   [2003]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [CHECKER] 32 Memory Leaks on Error Paths
    * Greg KH (greg@kroah.com) wrote:
    > Don't know, Vojtech said he would fix these up already. Try asking him
    > :)

    I checked with Vojtech, he said the patch looked OK. Can you apply?

    thanks,
    -chris

    ===== drivers/usb/class/usb-midi.c 1.22 vs edited =====
    --- 1.22/drivers/usb/class/usb-midi.c Tue Sep 2 11:40:27 2003
    +++ edited/drivers/usb/class/usb-midi.c Tue Sep 23 11:36:03 2003
    @@ -1750,7 +1750,7 @@
    return 0;

    error_end:
    - if ( mdevs != NULL && devices > 0 ) {
    + if ( mdevs != NULL ) {
    for ( i=0 ; i<devices ; i++ ) {
    if ( mdevs[i] != NULL ) {
    unregister_sound_midi( mdevs[i]->dev_midi );
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-03-22 13:48    [W:0.018 / U:29.280 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site