Re: [patch] cxlflash: a couple off by one bugs

2015-09-22 Thread Matthew R. Ochs
> On Sep 22, 2015, at 7:32 AM, Dan Carpenter wrote: > > The "> MAX_CONTEXT" should be ">= MAX_CONTEXT". Otherwise we go one > step beyond the end of the cfg->ctx_tbl[] array. Acked-by: Matthew R. Ochs > > Signed-off-by: Dan Carpenter > > diff --git a/drivers/scsi/cxlflash/superpipe.c > b/

Re: [patch] cxlflash: a couple off by one bugs

2015-09-22 Thread Manoj Kumar
Reviewed-by: Manoj Kumar --- Manoj Kumar On 9/22/2015 7:32 AM, Dan Carpenter wrote: 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 diff --git a/drivers/scsi/cxlflash/superpipe.c b/drivers/sc

[patch] cxlflash: a couple off by one bugs

2015-09-22 Thread Dan Carpenter
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 diff --git a/drivers/scsi/cxlflash/superpipe.c b/drivers/scsi/cxlflash/superpipe.c index f1b62ce..05e0ecf 100644 --- a/drivers/scsi/cxlflash/superpi