kdbus_pool_copy(): increase off_src in loop
authorDaniel Mack <zonque@gmail.com>
Sat, 22 Mar 2014 13:50:38 +0000 (14:50 +0100)
committerDaniel Mack <zonque@gmail.com>
Sat, 22 Mar 2014 13:50:38 +0000 (14:50 +0100)
commitf0657af5964f7410fc32dc83b7315ac6656cfb28
treef635bae70c45f8d875574a22cd95db42b371ccba
parentd9b2e6db2a20919b5768ee78cc94be0235dc9404
kdbus_pool_copy(): increase off_src in loop

off_src is used by kdbus_pool_copy_file() to determine the offset in the
source file to copy from. We need to increase it by the number of copied
bytes after each call.

This fixes pool-to-pool copies with slices larger that PAGE_SIZE.
pool.c