diff options
| author | ChenXiaoSong <[email protected]> | 2024-08-22 08:20:51 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2024-08-22 14:52:00 +0000 |
| commit | 4e8771a3666c8f216eefd6bd2fd50121c6c437db (patch) | |
| tree | 2109f0f7167fdb75f395bb79dfb2bf347df9d918 /lib/overflow_kunit.c | |
| parent | smb/server: fix return value of smb2_open() (diff) | |
| download | kernel-4e8771a3666c8f216eefd6bd2fd50121c6c437db.tar.gz kernel-4e8771a3666c8f216eefd6bd2fd50121c6c437db.zip | |
smb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open()
null-ptr-deref will occur when (req_op_level == SMB2_OPLOCK_LEVEL_LEASE)
and parse_lease_state() return NULL.
Fix this by check if 'lease_ctx_info' is NULL.
Additionally, remove the redundant parentheses in
parse_durable_handle_context().
Signed-off-by: ChenXiaoSong <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/overflow_kunit.c')
0 files changed, 0 insertions, 0 deletions
