Staging: ced1401: fix a couple off by one checks
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 20 Sep 2012 08:43:54 +0000 (11:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Sep 2012 15:56:41 +0000 (08:56 -0700)
commit428ed14f366276550a70014ed80be941d7e721d5
treebda1b63bebe072f9356f6945f861cce6de0cf746
parentbff6c3e00ca7e56ca82e19ffb722159cf1216d20
Staging: ced1401: fix a couple off by one checks

nArea is used as an offset into the ->rTransDef[] array which has
MAX_TRANSAREAS elements.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ced1401/ced_ioc.c