Re: [PATCH] memory: omap-gpmc: Fix a couple off by ones

2020-08-26 Thread Krzysztof Kozlowski
On Tue, Aug 25, 2020 at 01:47:07PM +0300, Dan Carpenter wrote: > These comparisons should be >= instead of > to prevent reading one > element beyond the end of the gpmc_cs[] array. > > Fixes: cdd6928c589a ("ARM: OMAP2+: Add device-tree support for NOR flash") > Fixes: f37e4580c409 ("ARM: OMAP2: Dy

Re: [PATCH] memory: omap-gpmc: Fix a couple off by ones

2020-08-26 Thread Roger Quadros
On 25/08/2020 13:47, Dan Carpenter wrote: These comparisons should be >= instead of > to prevent reading one element beyond the end of the gpmc_cs[] array. Fixes: cdd6928c589a ("ARM: OMAP2+: Add device-tree support for NOR flash") Fixes: f37e4580c409 ("ARM: OMAP2: Dynamic allocator for GPMC memo

[PATCH] memory: omap-gpmc: Fix a couple off by ones

2020-08-25 Thread Dan Carpenter
These comparisons should be >= instead of > to prevent reading one element beyond the end of the gpmc_cs[] array. Fixes: cdd6928c589a ("ARM: OMAP2+: Add device-tree support for NOR flash") Fixes: f37e4580c409 ("ARM: OMAP2: Dynamic allocator for GPMC memory space") Signed-off-by: Dan Carpenter ---