]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: check overflow and correct mlc pairs
authorMatias Bjørling <m@bjorling.me>
Thu, 4 Feb 2016 14:13:26 +0000 (15:13 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 4 Feb 2016 16:19:45 +0000 (09:19 -0700)
commit00424520061d7b2f2b30c067f3ce38937bb3e7a9
treefca58d9144d6b47691e40f4f05051be5e24682c9
parentc8eaad94e6f595b071ffdc4f671ac7f79e428946
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: f4fcb5ec7d15 "lightnvm: introduce mlc lower page table mappings"
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/lightnvm.c