ftl: fix bug where constant is not bitshifted
This commit is contained in:
parent
bf677b7655
commit
f647188666
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ int write_upage(struct ftl_map *map, const void *page,
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (page && flash_write(map->dev, map->head << map->log2_page_size, page,
|
if (page && flash_write(map->dev, map->head << map->log2_page_size, page,
|
||||||
map->log2_page_size) == 0)
|
1 << map->log2_page_size) == 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
return write_page_desc(map, page_desc);
|
return write_page_desc(map, page_desc);
|
||||||
|
|
Loading…
Add table
Reference in a new issue