]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.1: Fix wraparound issues in pnfs_seqid_is_newer()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 12 Feb 2014 14:36:59 +0000 (09:36 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 20 Feb 2014 02:21:01 +0000 (21:21 -0500)
commitc43bba1ea61e5ba1c354c42c52232b8a974b9434
treeac1741fe6177634056d41ba1437d122fc778a403
parent22d025e86d91243fada51f0b00d0c564ad9fa740
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: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs.c