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

Next file: linux/drivers/sound/emu10k1/hwaccess.h
Previous file: linux/drivers/sound/emu10k1/cardwi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.8/linux/drivers/sound/emu10k1/cardwo.c linux/drivers/sound/emu10k1/cardwo.c
@@ -581,7 +581,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)