[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87muyjff6v.fsf@suse.com>
Date: Wed, 04 Apr 2018 12:18:00 +0200
From: Aurélien Aptel <aaptel@...e.com>
To: "Gustavo A. R. Silva" <garsilva@...eddedor.com>,
Ronnie Sahlberg <lsahlber@...hat.com>,
Steve French <sfrench@...ba.org>
Cc: linux-cifs@...r.kernel.org, samba-technical@...ts.samba.org,
linux-kernel@...r.kernel.org,
"Gustavo A. R. Silva" <gustavo@...eddeor.com>
Subject: Re: [PATCH v2] cifs: smb2pdu: Fix potential NULL pointer dereference
"Gustavo A. R. Silva" <garsilva@...eddedor.com> writes:
> 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@...eddedor.com>
Reviewed-by: Aurelien Aptel <aaptel@...e.com>
--
Aurélien Aptel / SUSE Labs Samba Team
GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3
SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
Powered by blists - more mailing lists