summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/clang/lib/CodeGen/CodeGenTBAA.cpp
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2015-11-18 23:04:01 +0000
committerrmacklem <rmacklem@FreeBSD.org>2015-11-18 23:04:01 +0000
commitf133998d4f5495d55375e081bb5ce826f1f43e73 (patch)
tree30e1fd62aadf1372aba80d9358ec1dafcfe7b7ea /contrib/llvm/tools/clang/lib/CodeGen/CodeGenTBAA.cpp
parent37b150b7e118d61f49eef786979de58d27f31277 (diff)
downloadFreeBSD-src-f133998d4f5495d55375e081bb5ce826f1f43e73.zip
FreeBSD-src-f133998d4f5495d55375e081bb5ce826f1f43e73.tar.gz
The problem report was for a crash that happened when smbfs was
trying to do a mount. Given the backtrace, it appears that the crash occurred when smb_vc_create() failed and then called smb_vc_put() with vcp->vc_iod == NULL. smb_vc_put() subsequently called smb_vc_disconnect() with vcp->vc_iod == NULL, causing the crash. This patch adds a check for vcp->vc_iod != NULL in smb_vc_disconnect() to avoid the crash. It also fixes the case in smb_vc_create() where kproc_create() fails so that it destroys the mutexes and sets vcp->vc_iod == NULL before free()'ing the iod structure. The person who reported the PR tested the patch, but was not able to reproduce the crash with or without the patch. PR: 201912 Reviewed by: jhb MFC after: 2 weeks
Diffstat (limited to 'contrib/llvm/tools/clang/lib/CodeGen/CodeGenTBAA.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud