Skip to content
Commit 82c596eb authored by Chengguang Xu's avatar Chengguang Xu Committed by Anna Schumaker
Browse files

nfs4: strengthen error check to avoid unexpected result



The variable error is ssize_t, which is signed and will
cast to unsigned when comapre with variable size, so add
a check to avoid unexpected result in case of negative
value of error.

Signed-off-by: default avatarChengguang Xu <cgxu519@mykernel.net>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent 48bb6ec1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment