mtd: m25p80: consider max message size in m25p80_read
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 28 Oct 2016 05:58:46 +0000 (07:58 +0200)
committerCyrille Pitchen <cyrille.pitchen@atmel.com>
Fri, 10 Feb 2017 12:54:55 +0000 (13:54 +0100)
commit9e276de6a367cde07c1a63522152985d4e5cca8b
treec58a026cd29238a9f6c07c9b96a1185a82e6497d
parent9e84609e8cdb4ce841cc2f9a217996a0b1198d29
mtd: m25p80: consider max message size in m25p80_read

Consider a message size limit when calculating the maximum amount
of data that can be read.

The message size limit has been introduced with 4.9, so cc it
to stable.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
drivers/mtd/devices/m25p80.c