]> git.baikalelectronics.ru Git - kernel.git/commit
relay: fix bogus cast in subbuf_splice_actor()
authorTom Zanussi <zanussi@us.ibm.com>
Thu, 12 Jul 2007 06:12:04 +0000 (08:12 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 13 Jul 2007 12:14:26 +0000 (14:14 +0200)
commit319179a9ed26944040733e1e4ec3818509b1d16e
treec7025d1fd59c116584e166d8e2c7e455718fd056
parent600a0def7f6288831d34b3b29e47d144a7145325
relay: fix bogus cast in subbuf_splice_actor()

The current code that sets the read position in subbuf_splice_actor may
give erroneous results if the buffer size isn't a power of 2.  This
patch fixes the problem.

Signed-off-by: Tom Zanussi <zanussi@us.ibm.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
kernel/relay.c