Files
linux/sound
Julia Lawall f8c62dc268 ALSA: sound/core/pcm_compat.c: adjust array index
commit ca9380fd68 upstream.

Convert array index from the loop bound to the loop index.

A simplified version of the semantic patch that fixes this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression e1,e2,ar;
@@

for(e1 = 0; e1 < e2; e1++) { <...
  ar[
- e2
+ e1
  ]
  ...> }
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-08-04 21:58:42 -07:00
..
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2010-05-27 09:47:02 +02:00
2011-05-20 11:33:39 +02:00
2011-06-16 21:31:33 +02:00
2008-01-31 17:29:48 +01:00