diff options
author | Chengguang Xu <cgxu519@mykernel.net> | 2020-06-17 03:09:39 +0200 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2020-09-21 16:21:08 +0200 |
commit | 82c596ebaa104f994d25256523ae2f9047323fe7 (patch) | |
tree | 18cc37b47fd88868840cadc91b84111ad80bc820 /fs/nfs_common | |
parent | NFS: remove redundant pointer clnt (diff) | |
download | linux-82c596ebaa104f994d25256523ae2f9047323fe7.tar.xz linux-82c596ebaa104f994d25256523ae2f9047323fe7.zip |
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: Chengguang Xu <cgxu519@mykernel.net>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs_common')
0 files changed, 0 insertions, 0 deletions