David Howells 146a119278 afs: Fix the maths in afs_fs_store_data()
afs_fs_store_data() works out of the size of the write it's going to make,
but it uses 32-bit unsigned subtraction in one place that gets
automatically cast to loff_t.

However, if to < offset, then the number goes negative, but as the result
isn't signed, this doesn't get sign-extended to 64-bits when placed in a
loff_t.

Fix by casting the operands to loff_t.

Signed-off-by: David Howells <dhowells@redhat.com>
2017-03-16 16:27:47 +00:00
..
2008-04-29 08:06:26 -07:00
2007-07-16 09:05:43 -07:00
2011-03-31 11:26:23 -03:00
2017-02-27 18:43:47 -08:00
2017-02-10 16:34:17 +00:00
2009-04-03 16:42:41 +01:00
2017-01-09 11:10:02 +00:00
2017-01-09 11:10:02 +00:00