]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/char/applicom.c
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)
commit2154e0a4f43e0c811737e391e7981d331e450d42
tree3c373d1aca03f7c20129d10433a69691721d0d8c
parente926301b39a07f587ff8c66354a2e2ee4c29162c
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