mpu401 thinko

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 4 Feb 98 10:20 GMT


This should fix the thinko in the MPU401 changes I submitted

Thanks to Michael Chastin for reading all my patches as ever..

--- drivers/sound/mpu401.c~ Tue Feb 3 23:00:56 1998
+++ drivers/sound/mpu401.c Wed Feb 4 11:15:03 1998
@@ -1047,13 +1047,9 @@

mpu401_synth_operations[m] = (struct synth_operations *) kmalloc(sizeof(struct synth_operations), GFP_KERNEL);

- if (sound_nblocks < 1024)
- sound_nblocks++;;
-
if (mpu401_synth_operations[m] == NULL)
{
sound_unload_mididev(m);
- kfree(mpu401_synth_operations[m]);
printk(KERN_ERR "mpu401: Can't allocate memory\n");
return;
}