summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2021-05-17 16:23:50 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-05-17 16:23:50 +0200
commitec8f2fe6b1bc9e69a725863a61a6b84ab7a91989 (patch)
treefbb4efb754fc4b97bc91e52ebb9d7003e2e6e5ae /fs
parentbca629ead27b14bb1439fffa23a3449576f12c54 (diff)
parent1b2c92b76e8fd9185115c51f47056060ade5ec26 (diff)
downloadbarebox-ec8f2fe6b1bc9e69a725863a61a6b84ab7a91989.tar.gz
barebox-ec8f2fe6b1bc9e69a725863a61a6b84ab7a91989.tar.xz
Merge branch 'for-next/misc'
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs.c b/fs/nfs.c
index c281a2ba75..1130632eb3 100644
--- a/fs/nfs.c
+++ b/fs/nfs.c
@@ -1125,7 +1125,7 @@ static int nfs_readlink_req(struct nfs_priv *npriv, struct nfs_fh *fh,
len = ntoh32(net_read_uint32(p)); /* new path length */
- len = max_t(unsigned int, len,
+ len = min_t(unsigned int, len,
nfs_packet->len - sizeof(struct rpc_reply) - sizeof(uint32_t));
p++;