diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2021-05-17 16:23:50 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-05-17 16:23:50 +0200 |
commit | ec8f2fe6b1bc9e69a725863a61a6b84ab7a91989 (patch) | |
tree | fbb4efb754fc4b97bc91e52ebb9d7003e2e6e5ae /fs | |
parent | bca629ead27b14bb1439fffa23a3449576f12c54 (diff) | |
parent | 1b2c92b76e8fd9185115c51f47056060ade5ec26 (diff) | |
download | barebox-ec8f2fe6b1bc9e69a725863a61a6b84ab7a91989.tar.gz barebox-ec8f2fe6b1bc9e69a725863a61a6b84ab7a91989.tar.xz |
Merge branch 'for-next/misc'
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++; |