forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/fs/nfs/nfs2xdr.c
....@@ -948,7 +948,7 @@
948948
949949 error = decode_filename_inline(xdr, &entry->name, &entry->len);
950950 if (unlikely(error))
951
- return -EAGAIN;
951
+ return error == -ENAMETOOLONG ? -ENAMETOOLONG : -EAGAIN;
952952
953953 /*
954954 * The type (size and byte order) of nfscookie isn't defined in