aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2021-07-06 13:05:01 +0100
committerNamjae Jeon <[email protected]>2021-07-06 22:06:32 +0900
commit4951a84f61d6de4ab5aca1d49a6b6ee2ad2d1eec (patch)
tree3374da92a64b7ea2e4d4225df9a25e9b7a2ef4d4 /lib/test_fortify/write_overflow-memcpy.c
parent465d720485eff1468503d210b1b966660f5f9b85 (diff)
ksmbd: Fix read on the uninitialized pointer sess
There is a error handling case that passes control to label out_err without pointer sess being assigned a value. The unassigned pointer may be any garbage value and so the test of rc < 0 && sess maybe true leading to sess being passed to the call to ksmbd_session_destroy. Fix this by setting sess to NULL in this corner case. Addresses-Coverity: ("Uninitialized pointer read") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions