Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2c64c57d authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4.1: Fix wraparound issues in pnfs_seqid_is_newer()



Subtraction of signed integers does not have well defined wraparound
semantics in the C99 standard. In order to be wraparound-safe, we
have to use unsigned subtraction, and then cast the result.

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 311324ad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment