]> Git Repo - linux.git/commit
pipe: fix pipe buffer resizing
authorMiklos Szeredi <[email protected]>
Tue, 8 Jun 2010 14:28:45 +0000 (16:28 +0200)
committerJens Axboe <[email protected]>
Thu, 10 Jun 2010 17:08:34 +0000 (19:08 +0200)
commit1d862f41222b7f385bada9f85a67ca5592ffd33e
tree924baccaa8a5a56610db5c66020847b457679736
parent3e6c05052c262ebe7fdd85e75e9d4f956cdd8d82
pipe: fix pipe buffer resizing

pipe_set_size() needs to copy pipe bufs from the old circular buffer
to the new.

The current code gets this wrong in multiple ways, resulting in oops.

Test program is available here:
  http://www.kernel.org/pub/linux/kernel/people/mszeredi/piperesize/

Signed-off-by: Miklos Szeredi <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
fs/pipe.c
This page took 0.057093 seconds and 4 git commands to generate.