diff options
author | Anna Schumaker <[email protected]> | 2021-05-19 12:54:51 -0400 |
---|---|---|
committer | Trond Myklebust <[email protected]> | 2021-05-20 12:17:08 -0400 |
commit | a421d218603ffa822a0b8045055c03eae394a7eb (patch) | |
tree | d28e45b50533395e3872e99c6d88387da2972ee5 /drivers/usb/cdns3/cdns3-debug.h | |
parent | e877a88d1f069edced4160792f42c2a8e2dba942 (diff) |
NFSv4: Fix a NULL pointer dereference in pnfs_mark_matching_lsegs_return()
Commit de144ff4234f changes _pnfs_return_layout() to call
pnfs_mark_matching_lsegs_return() passing NULL as the struct
pnfs_layout_range argument. Unfortunately,
pnfs_mark_matching_lsegs_return() doesn't check if we have a value here
before dereferencing it, causing an oops.
I'm able to hit this crash consistently when running connectathon basic
tests on NFS v4.1/v4.2 against Ontap.
Fixes: de144ff4234f ("NFSv4: Don't discard segments marked for return in _pnfs_return_layout()")
Cc: [email protected]
Signed-off-by: Anna Schumaker <[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