diff --git a/drivers/base/genlock.c b/drivers/base/genlock.c index a89ee7ee..b5f8e42e 100755 --- a/drivers/base/genlock.c +++ b/drivers/base/genlock.c @@ -22,6 +22,7 @@ #include #include #include +#include /* Lock states - can either be unlocked, held as an exclusive write lock or a * shared read lock @@ -296,8 +297,8 @@ static int _genlock_lock(struct genlock *lock, struct genlock_handle *handle, * succeed to not block, the mere idea is too dangerous to continue */ -// if (in_interrupt() && !(flags & GENLOCK_NOBLOCK)) -// BUG(); + if (in_interrupt() && !(flags & GENLOCK_NOBLOCK)) + BUG(); /* Fast path - the lock is unlocked, so go do the needful */