summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_em86.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher2019-05-17 20:18:43 +0200
committerAndreas Gruenbacher2019-05-22 14:09:44 +0200
commit5a5ec83d6ac974b12085cd99b196795f14079037 (patch)
treeba7ac34e9dbe8e0795b3704e36d5bdb88dc01faa /fs/binfmt_em86.c
parentLinux 5.2-rc1 (diff)
downloadkernel-qcow2-linux-5a5ec83d6ac974b12085cd99b196795f14079037.tar.gz
kernel-qcow2-linux-5a5ec83d6ac974b12085cd99b196795f14079037.tar.xz
kernel-qcow2-linux-5a5ec83d6ac974b12085cd99b196795f14079037.zip
gfs2: Fix sign extension bug in gfs2_update_stats
Commit 4d207133e9c3 changed the types of the statistic values in struct gfs2_lkstats from s64 to u64. Because of that, what should be a signed value in gfs2_update_stats turned into an unsigned value. When shifted right, we end up with a large positive value instead of a small negative value, which results in an incorrect variance estimate. Fixes: 4d207133e9c3 ("gfs2: Make statistics unsigned, suitable for use with do_div()") Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Cc: stable@vger.kernel.org # v4.4+
Diffstat (limited to 'fs/binfmt_em86.c')
0 files changed, 0 insertions, 0 deletions