Re: [CHECKER] 32 Memory Leaks on Error Paths

From: Chris Wright
Date: Tue Sep 23 2003 - 17:16:32 EST


* Greg KH (greg@xxxxxxxxx) 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/