MFC: Avoid dereferencing NULL pointer.

This commit is contained in:
tegge 2006-05-14 00:10:49 +00:00
parent c83e05380e
commit 4081ad0c73

@ -569,7 +569,9 @@ extern int mpsafe_vfs;
#define VFS_LOCK_GIANT(MP) __extension__ \
({ \
int _locked; \
if (VFS_NEEDSGIANT((MP))) { \
struct mount *_MP; \
_MP = (MP); \
if (VFS_NEEDSGIANT(_MP)) { \
mtx_lock(&Giant); \
_locked = 1; \
} else \