diff options
author | Dan Carpenter <[email protected]> | 2021-05-11 11:49:42 +0300 |
---|---|---|
committer | Trond Myklebust <[email protected]> | 2021-05-20 12:17:08 -0400 |
commit | 769b01ea68b6c49dc3cde6adf7e53927dacbd3a8 (patch) | |
tree | 939cab969061c04a2ff9927cb98473f0517d7367 /drivers/usb/cdns3/cdns3-debug.h | |
parent | bb002388901151fe35b6697ab116f6ed0721a9ed (diff) |
NFS: fix an incorrect limit in filelayout_decode_layout()
The "sizeof(struct nfs_fh)" is two bytes too large and could lead to
memory corruption. It should be NFS_MAXFHSIZE because that's the size
of the ->data[] buffer.
I reversed the size of the arguments to put the variable on the left.
Fixes: 16b374ca439f ("NFSv4.1: pnfs: filelayout: add driver's LAYOUTGET and GETDEVICEINFO infrastructure")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions