mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-23 16:01:42 +00:00
Avoid dereferencing NULL pointer.
This commit is contained in:
parent
4687ab54e3
commit
5ac6cbfdfb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158320
@ -576,7 +576,9 @@ extern int mpsafe_vfs;
|
|||||||
#define VFS_LOCK_GIANT(MP) __extension__ \
|
#define VFS_LOCK_GIANT(MP) __extension__ \
|
||||||
({ \
|
({ \
|
||||||
int _locked; \
|
int _locked; \
|
||||||
if (VFS_NEEDSGIANT((MP))) { \
|
struct mount *_MP; \
|
||||||
|
_MP = (MP); \
|
||||||
|
if (VFS_NEEDSGIANT(_MP)) { \
|
||||||
mtx_lock(&Giant); \
|
mtx_lock(&Giant); \
|
||||||
_locked = 1; \
|
_locked = 1; \
|
||||||
} else \
|
} else \
|
||||||
|
Loading…
Reference in New Issue
Block a user