diff options
author | Joe Thornber <ejt@redhat.com> | 2017-02-09 11:46:18 -0500 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2017-06-05 21:17:09 +0100 |
commit | be1aa88a64393289a11ba401de6b2bcfa8d9c503 (patch) | |
tree | e4df78697578289c01d3ce84296495257a83f147 /drivers/rtc/rtc-rs5c348.c | |
parent | 553601b859c064e042fb7ca1b5e38129d800d6e4 (diff) | |
download | linux-stable-be1aa88a64393289a11ba401de6b2bcfa8d9c503.tar.gz linux-stable-be1aa88a64393289a11ba401de6b2bcfa8d9c503.tar.bz2 linux-stable-be1aa88a64393289a11ba401de6b2bcfa8d9c503.zip |
dm cache: fix corruption seen when using cache > 2TB
commit ca763d0a53b264a650342cee206512bc92ac7050 upstream.
A rounding bug due to compiler generated temporary being 32bit was found
in remap_to_cache(). A localized cast in remap_to_cache() fixes the
corruption but this preferred fix (changing from uint32_t to sector_t)
eliminates potential for future rounding errors elsewhere.
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/rtc/rtc-rs5c348.c')
0 files changed, 0 insertions, 0 deletions