]> git.baikalelectronics.ru Git - kernel.git/commit
applicom: use correct array offset
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 1 Mar 2013 20:31:46 +0000 (23:31 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Mar 2013 19:23:48 +0000 (12:23 -0700)
commita9dcc94a79908e7b902ad56357b70d25d616f7b7
tree3c373d1aca03f7c20129d10433a69691721d0d8c
parentcfa169ec44b142f6901d1dcab0cdb9ab2982227d
applicom: use correct array offset

We're iterating through abps[] printing information, but here we
use the wrong array index.  IndexCard comes from the user and in
this case it was specifically not range checked because we didn't
expect to use it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/applicom.c