[PATCH AUTOSEL for 4.9 065/100] Btrfs: fix an integer overflow check

2017-12-12 Thread alexander . levin
From: Dan Carpenter [ Upstream commit 457ae7268b29c33dee1c0feb143a15f6029d177b ] This isn't super serious because you need CAP_ADMIN to run this code. I added this integer overflow check last year but apparently I am rubbish at writing integer overflow checks...

[PATCH AUTOSEL for 4.9 065/100] Btrfs: fix an integer overflow check

2017-12-12 Thread alexander . levin
From: Dan Carpenter [ Upstream commit 457ae7268b29c33dee1c0feb143a15f6029d177b ] This isn't super serious because you need CAP_ADMIN to run this code. I added this integer overflow check last year but apparently I am rubbish at writing integer overflow checks... There are two issues. First,