diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-04-17 09:47:25 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-18 16:58:16 -0700 |
| commit | fdf3480032fc900075c4bdb18271150aaa8a53a0 (patch) | |
| tree | 3427b2530e73a4d687519c15fef543231c2298c4 /kernel/sysctl_binary.c | |
| parent | 1ae5062a33be13a72d37ec46808490d471b0c1d3 (diff) | |
Staging: wlags49_h2: reading past the end of array
The original code had some confusion about the dimensions of the array.
It should have been an array of 2 element arrays but it was declared as
an array of 50 element arrays.
The limitter on the outside array should have been
ARRAY_SIZE(chan_freq_list) or 26 but instead 50 was used. It meant that
we read past the end. It's probably harmless but it's obviously worth
fixing.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
