Re: [PATCH 2/2] ic3: master: off by one in mode_show()

2018-11-26 Thread Boris Brezillon
On Fri, 23 Nov 2018 10:15:05 +0300 Dan Carpenter wrote: > This should be >= ARRAY_SIZE() to avoid reading one element beyond the > end of the array. > > Fixes: 3a379bbcea0a ("i3c: Add core I3C infrastructure") > Signed-off-by: Dan Carpenter Queued to i3c/next. Thanks, Boris > --- > drivers

[PATCH 2/2] ic3: master: off by one in mode_show()

2018-11-22 Thread Dan Carpenter
This should be >= ARRAY_SIZE() to avoid reading one element beyond the end of the array. Fixes: 3a379bbcea0a ("i3c: Add core I3C infrastructure") Signed-off-by: Dan Carpenter --- drivers/i3c/master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i3c/master.c b/drive