diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2018-12-12 23:06:16 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-12-24 05:41:31 +0100 |
commit | 59a63e479ce36a3f24444c3a36efe82b78e4a8e0 (patch) | |
tree | f7c1c07ac295014a01fa1d2bc8a4dff0156076e3 /fs/cifs/file.c | |
parent | cifs: remove coverity warning in calc_lanman_hash (diff) | |
download | linux-59a63e479ce36a3f24444c3a36efe82b78e4a8e0.tar.xz linux-59a63e479ce36a3f24444c3a36efe82b78e4a8e0.zip |
cifs: check ntwrk_buf_start for NULL before dereferencing it
RHBZ: 1021460
There is an issue where when multiple threads open/close the same directory
ntwrk_buf_start might end up being NULL, causing the call to smbCalcSize
later to oops with a NULL deref.
The real bug is why this happens and why this can become NULL for an
open cfile, which should not be allowed.
This patch tries to avoid a oops until the time when we fix the underlying
issue.
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/file.c')
0 files changed, 0 insertions, 0 deletions