diff options
author | 2018-04-03 16:00:40 -0500 | |
---|---|---|
committer | 2018-04-11 16:44:58 -0500 | |
commit | c0953f2ed510c31a375193e9dbca9774e77fb4b7 (patch) | |
tree | 410692c8d7f7cb41cc10545daf6ec41537154489 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch 'akpm' (patches from Andrew) (diff) | |
download | linux-dev-c0953f2ed510c31a375193e9dbca9774e77fb4b7.tar.xz linux-dev-c0953f2ed510c31a375193e9dbca9774e77fb4b7.zip |
cifs: smb2pdu: Fix potential NULL pointer dereference
tcon->ses is being dereferenced before it is null checked, hence
there is a potential null pointer dereference.
Fix this by moving the pointer dereference after tcon->ses has
been properly null checked.
Addresses-Coverity-ID: 1467426 ("Dereference before null check")
Fixes: 93012bf98416 ("cifs: add server->vals->header_preamble_size")
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions