[PATCH] drivers/telephony/ixj: fix an array overrun
The Coverity checker noted that in drivers/telephony/ixj.c:ixj_build_filter_cadence(), filter_en[4] or filter_en[5] could be written to. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
33184048dc
commit
b196872cd6
|
@ -1295,7 +1295,7 @@ typedef struct {
|
||||||
Proc_Info_Type Info_write;
|
Proc_Info_Type Info_write;
|
||||||
unsigned short frame_count;
|
unsigned short frame_count;
|
||||||
unsigned int filter_hist[4];
|
unsigned int filter_hist[4];
|
||||||
unsigned char filter_en[4];
|
unsigned char filter_en[6];
|
||||||
unsigned short proc_load;
|
unsigned short proc_load;
|
||||||
unsigned long framesread;
|
unsigned long framesread;
|
||||||
unsigned long frameswritten;
|
unsigned long frameswritten;
|
||||||
|
|
Loading…
Reference in New Issue