diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-05-31 17:25:05 +0900 |
---|---|---|
committer | Namjae Jeon <namjae.jeon@samsung.com> | 2021-06-01 09:26:20 +0900 |
commit | fd6de099d7fabc2b86f51dc622453eb279f7cce9 (patch) | |
tree | 0487242c917d5d85bf6183516e163119190319af /tools/perf/scripts/python | |
parent | 673b9ba7a1404fa5beda936b8ad509b70a516b52 (diff) |
cifsd: check return value of ksmbd_vfs_getcasexattr() correctly
If ksmbd_vfs_getcasexattr() returns -ENOMEM, stream_buf is NULL,
it will cause null-ptr-deref when using it to copy memory. So we
need check the return value of ksmbd_vfs_getcasexattr() by comparing
with 0.
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions