[PATCH] mtd: cfi_cmdset_0001: Do not check for OTP outside device

Linus Walleij linus.walleij at linaro.org
Wed May 31 06:47:03 PDT 2023


On Tue, May 30, 2023 at 10:51 PM Linus Walleij <linus.walleij at linaro.org> wrote:

> Currently the offset into the device when looking for OTP
> bits can go outside of the address of the MTD NOR devices,
> and if that memory isn't readable, bad things happen
> on the IXP4xx (added prints that illustrate the problem before
> the crash):

BTW if this fix is correct, this should probably be tagged for
stable.
Cc: stable at vger.kernel.org

Yours,
Linus Walleij



More information about the linux-mtd mailing list