patch-2.4.9 linux/drivers/sound/emu10k1/cardwi.c

Next file: linux/drivers/sound/emu10k1/cardwo.c
Previous file: linux/drivers/sound/emu10k1/audio.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.8/linux/drivers/sound/emu10k1/cardwi.c linux/drivers/sound/emu10k1/cardwi.c
@@ -325,7 +325,7 @@
 	u32 sizetocopy, sizetocopy_now, start;
 	unsigned long flags;
 
-	sizetocopy = min(buffer->size, *size);
+	sizetocopy = min(u32, buffer->size, *size);
 	*size = sizetocopy;
 
 	if (!sizetocopy)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)