Gustavo A. R. Silva c0953f2ed5 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>
2018-04-11 16:44:58 -05:00
..
2016-10-13 19:48:11 -05:00
2018-04-01 20:24:39 -05:00
2018-04-11 10:28:39 -07:00
2017-01-14 14:58:29 -06:00
2017-03-02 23:13:37 -06:00
2012-07-24 10:25:13 -05:00
2018-04-01 20:24:39 -05:00
2013-09-08 14:54:24 -05:00