Messages in this thread Patch in this message | | | Date | Tue, 23 Sep 2003 15:14:56 -0700 | From | Chris Wright <> | Subject | Re: [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/
| |