From 78c388aed2b7184182c08428db1de6c872d815f5 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 4 Jan 1999 16:03:48 +0000 Subject: Merge with Linux 2.1.131 and more MIPS goodies. (Did I mention that CVS is buggy ...) --- drivers/sound/pss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/sound/pss.c') diff --git a/drivers/sound/pss.c b/drivers/sound/pss.c index fd6e0b6f5..701be5289 100644 --- a/drivers/sound/pss.c +++ b/drivers/sound/pss.c @@ -796,7 +796,7 @@ static int pss_coproc_ioctl(void *dev_info, unsigned int cmd, caddr_t arg, int l 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) -- cgit v1.2.3