patch-2.1.122 linux/drivers/sound/pss.c

Next file: linux/drivers/sound/sb.h
Previous file: linux/drivers/sound/msnd_pinnacle.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.121/linux/drivers/sound/pss.c linux/drivers/sound/pss.c
@@ -796,7 +796,7 @@
 			data = (unsigned short *)mbuf->data;
 			save_flags(flags);
 			cli();
-			for (i = 0; i < mbuf->len; i++) {
+			for (i = 0; i < sizeof(mbuf->data)/sizeof(unsigned short); i++) {
 				mbuf->len = i;	/* feed back number of WORDs read */
 				if (!pss_get_dspword(devc, data++)) {
 					if (i == 0)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov