]> err.no Git - linux-2.6/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)
commit24da24de2eae0c277b85836e2b4b09cfafeea995
treec7025d1fd59c116584e166d8e2c7e455718fd056
parent773208946a132fb733ba273ee8562814f828cc28
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