mtd: cfi-flash: fix write_buff() for 64 bit systems
write_buff() uses ~(flash_info.portwidth - 1) to mask lower bits of addr. This
causes higher 32 bits of addr to be discarded on a 64 bit system, since
flash_info.portwidth is 32 bits long (unsigned int) and addr is 64 bits long
(unsigned long).

Signed-off-by: Peter Mamonov <pmamonov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 360b9fd commit f1ef09542d2dfaccb7d10e94b9d165eb40d1d19b
@Peter Mamonov Peter Mamonov authored on 22 May 2018
Sascha Hauer committed on 24 May 2018
Showing 1 changed file
View
drivers/mtd/nor/cfi_flash.c