]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: avoid overflowing f_bfree
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Wed, 30 Mar 2016 22:18:14 +0000 (23:18 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 6 May 2016 13:22:49 +0000 (15:22 +0200)
commit5c3ce60f5d160550fee548873ad5758a58ecfe89
tree847946f18a22c72839832b78f76253d5185ed24c
parent57fef2ae9120b23da90f44a46d0ae2096304d02b
btrfs: avoid overflowing f_bfree

Since mixed block groups accounting isn't byte-accurate and f_bree is an
unsigned integer, it could overflow. Avoid this.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Suggested-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/super.c