diff options
author | Matias Bjørling <m@bjorling.me> | 2016-02-04 17:13:26 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-02-04 19:19:45 +0300 |
commit | 6dde1d6c9094a7c20a680aa2196ad6d032ec7ded (patch) | |
tree | fca58d9144d6b47691e40f4f05051be5e24682c9 /drivers/lightnvm | |
parent | 3704e098cc1a4c2cabcf4e1cfbbff38b4bfb1ea7 (diff) | |
download | linux-6dde1d6c9094a7c20a680aa2196ad6d032ec7ded.tar.xz |
lightnvm: check overflow and correct mlc pairs
The specification currently limits the number of MLC pairs to 886. Make
sure that a device is unable to be instantiate if more is configured.
Also, previously the patch had the wrong math for copying MLC pairs, as
it only copied half of the actual entries.
Fixes: ca5927e7ab53 "lightnvm: introduce mlc lower page table mappings"
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/lightnvm')
0 files changed, 0 insertions, 0 deletions