net: nfs: fix the regression when nfs_read_reply() is called
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 10 Apr 2017 10:39:51 +0000 (19:39 +0900)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 15 Nov 2021 10:19:26 +0000 (11:19 +0100)
commit45356e3319e18e0fe1cdaf7acf839d41cbc8baec
tree09e3d2144cc49ad6ae37d3443e598188b8bfecbd
parent778600dfefde7f5300938bdcb7e63b7861e8a036
net: nfs: fix the regression when nfs_read_reply() is called

When nfs_read_reply() is called, it should be stucked in memcpy().
size of rpc_pkt.u.reply() might be too bigger.
Change from 'sizeof(rpc_pkt.u.reply)' to 'len'.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
net/nfs.c