diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2007-06-15 11:14:22 (GMT) |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-06-15 11:14:22 (GMT) |
commit | 00de00bdad278783b3664ad2969954a707f5944a (patch) | |
tree | d96e6dd310eb42e5f6c00dcc4ad8a22f6e0a92cd /arch/parisc | |
parent | 17ee4f49ab2c802c7818fa71c4e7e351a7230b86 (diff) | |
download | linux-fsl-qoriq-00de00bdad278783b3664ad2969954a707f5944a.tar.xz |
splice: fix leak of pages on short splice to pipe
If the destination pipe is full and we already transferred
data, we break out instead of waiting for more pipe room.
The exit logic looks at spd->nr_pages to see if we moved
everything inside the spd container, but we decrement that
variable in the loop to decide when spd has emptied.
Instead we want to compare to the original page count in
the spd, so cache that in a local variable.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'arch/parisc')
0 files changed, 0 insertions, 0 deletions