• D
    afs: Fix total-length calculation for multiple-page send · 1199db60
    David Howells 提交于
    Fix the total-length calculation in afs_make_call() when the operation
    being dispatched has data from a series of pages attached.
    
    Despite the patched code looking like that it should reduce mathematically
    to the current code, it doesn't because the 32-bit unsigned arithmetic
    being used to calculate the page-offset-difference doesn't correctly extend
    to a 64-bit value when the result is effectively negative.
    
    Without this, some FS.StoreData operations that span multiple pages fail,
    reporting too little or too much data.
    Signed-off-by: NDavid Howells <dhowells@redhat.com>
    1199db60
rxrpc.c 21.1 KB