diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-10-01 15:44:25 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-10-01 16:11:16 -0700 |
commit | f23fc156fb4294f678f1913a56da633fa57edb2d (patch) | |
tree | bc560880e9cf83542a3368963b429912ab218043 /drivers/mmc | |
parent | 196b3167efd13a02cdd34acc1a12316b9f45f41d (diff) | |
download | op-kernel-dev-f23fc156fb4294f678f1913a56da633fa57edb2d.zip op-kernel-dev-f23fc156fb4294f678f1913a56da633fa57edb2d.tar.gz |
serial167: fix read buffer overflow
Check whether index is within bounds before grabbing the element.
Also, since NR_PORTS is defined ARRAY_SIZE(cy_port), cy_port[NR_PORTS] is
out of bounds as well.
[akpm@linux-foundation.org: cleanup, remove (long) casts]
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mmc')
0 files changed, 0 insertions, 0 deletions