cxlflash: a couple off by one bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 2 Dec 2015 23:26:28 +0000 (17:26 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 10 Dec 2015 17:53:52 +0000 (12:53 -0500)
commite37390bee6fe7dfbe507a9d50cdc11344b53fa08
treedabc3bc2f2a479a1e52980106e72bbad9ba864c5
parent23211c1e7ad7693e0f518383890308f42f3cc10d
cxlflash: a couple off by one bugs

The "> MAX_CONTEXT" should be ">= MAX_CONTEXT".  Otherwise we go one
step beyond the end of the cfg->ctx_tbl[] array.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Manoj Kumar <manoj@linux.vnet.ibm.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxlflash/superpipe.c