diff options
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/mount_clnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/mount_clnt.c b/fs/nfs/mount_clnt.c index 38ef9eaec407..8b9affc8bab2 100644 --- a/fs/nfs/mount_clnt.c +++ b/fs/nfs/mount_clnt.c | |||
@@ -258,7 +258,7 @@ static int decode_status(struct xdr_stream *xdr, struct mountres *res) | |||
258 | return -EIO; | 258 | return -EIO; |
259 | status = ntohl(*p); | 259 | status = ntohl(*p); |
260 | 260 | ||
261 | for (i = 0; i <= ARRAY_SIZE(mnt_errtbl); i++) { | 261 | for (i = 0; i < ARRAY_SIZE(mnt_errtbl); i++) { |
262 | if (mnt_errtbl[i].status == status) { | 262 | if (mnt_errtbl[i].status == status) { |
263 | res->errno = mnt_errtbl[i].errno; | 263 | res->errno = mnt_errtbl[i].errno; |
264 | return 0; | 264 | return 0; |
@@ -309,7 +309,7 @@ static int decode_fhs_status(struct xdr_stream *xdr, struct mountres *res) | |||
309 | return -EIO; | 309 | return -EIO; |
310 | status = ntohl(*p); | 310 | status = ntohl(*p); |
311 | 311 | ||
312 | for (i = 0; i <= ARRAY_SIZE(mnt3_errtbl); i++) { | 312 | for (i = 0; i < ARRAY_SIZE(mnt3_errtbl); i++) { |
313 | if (mnt3_errtbl[i].status == status) { | 313 | if (mnt3_errtbl[i].status == status) { |
314 | res->errno = mnt3_errtbl[i].errno; | 314 | res->errno = mnt3_errtbl[i].errno; |
315 | return 0; | 315 | return 0; |