aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorMatias Bjørling <[email protected]>2016-11-10 11:26:57 +0000
committerJens Axboe <[email protected]>2016-11-12 01:27:32 +0000
commit409ae5a76e0505c8ffe1424f9c00dbf2ec7b5eea (patch)
tree48c5e6f4ce025fad785016a2087c0f671d61003b /scripts/gcc-plugins/sancov_plugin.c
parentMerge tag 'acpi-4.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/raf... (diff)
downloadkernel-409ae5a76e0505c8ffe1424f9c00dbf2ec7b5eea.tar.gz
kernel-409ae5a76e0505c8ffe1424f9c00dbf2ec7b5eea.zip
lightnvm: invalid offset calculation for lba_shift
The ns->lba_shift assumes its value to be the logarithmic of the LA size. A previous patch duplicated the lba_shift calculation into lightnvm. It prematurely also subtracted a 512byte shift, which commonly is applied per-command. The 512byte shift being subtracted twice led to data loss when restoring the logical to physical mapping table from device and when issuing I/O commands using rrpc. Fix offset by removing the 512byte shift subtraction when calculating lba_shift. Fixes: b0b4e09c1ae7 "lightnvm: control life of nvm_dev in driver" Reported-by: Javier González <[email protected]> Signed-off-by: Matias Bjørling <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions