https://github.com/torvalds/linux
Revision 94fed404109d301312bbdf73d7007976ffca3482 authored by Colin Ian King on 05 November 2019, 17:51:08 UTC, committed by Greg Kroah-Hartman on 07 November 2019, 15:29:17 UTC
Currently the pointer dentry is being dereferenced before it is
being null checked.  Fix this by only dereferencing dentry once
we know it is not null.

Addresses-Coverity: ("Dereference before null check")
Fixes: df4028658f9d ("staging: Add VirtualBox guest shared folder (vboxsf) support")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20191105175108.79824-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 32e9f6c
Raw File
Tip revision: 94fed404109d301312bbdf73d7007976ffca3482 authored by Colin Ian King on 05 November 2019, 17:51:08 UTC
staging: vboxsf: fix dereference of pointer dentry before it is null checked
Tip revision: 94fed40
COPYING
The Linux Kernel is provided under:

	SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note

Being under the terms of the GNU General Public License version 2 only,
according with:

	LICENSES/preferred/GPL-2.0

With an explicit syscall exception, as stated at:

	LICENSES/exceptions/Linux-syscall-note

In addition, other licenses may also apply. Please see:

	Documentation/process/license-rules.rst

for more details.
back to top