diff options
| author | Kuo-Jung Su <[email protected]> | 2013-07-04 11:40:36 +0800 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2013-07-25 16:43:40 +0200 |
| commit | d8b57c0a83f9cabc476ca0045c0089195c894b81 (patch) | |
| tree | af908f279e17927c3a928e0c9aa2248086377b46 /include/linux/stringify.h | |
| parent | 62c175fbb8a0f9a926c88294ea9f7e88eb898f6c (diff) | |
cfi_flash: use buffer length in unmap_physmem()
While the flash_detect_legacy() of drivers/mtd/cfi_flash.c
feed unmap_physmem() with MAP_NOCACHE as 2nd parameter,
the do_spi_flash_read_write() of common/cmd_sf.c
feed unmap_physmem() with the length of the mapped buffer
as 2nd parameter.
It's apparently a bug, and I personally think the 2nd parameter
should be the length of the mapped buffer.
Signed-off-by: Kuo-Jung Su <[email protected]>
CC: Albert Aribaud <[email protected]>
CC: Stefan Roese <[email protected]>
Signed-off-by: Stefan Roese <[email protected]>
Diffstat (limited to 'include/linux/stringify.h')
0 files changed, 0 insertions, 0 deletions
