]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - kernel/lockdep.c
drm/radeon/kms: avoid oops on mac r4xx cards
[net-next-2.6.git] / kernel / lockdep.c
index ec21304856d102814a796ef511f02d728f58a380..54286798c37b8e060078adbd7444c3f2c8da9847 100644 (file)
@@ -2711,6 +2711,8 @@ void lockdep_init_map(struct lockdep_map *lock, const char *name,
 }
 EXPORT_SYMBOL_GPL(lockdep_init_map);
 
+struct lock_class_key __lockdep_no_validate__;
+
 /*
  * This gets called for every mutex_lock*()/spin_lock*() operation.
  * We maintain the dependency maps and validate the locking attempt:
@@ -2745,6 +2747,9 @@ static int __lock_acquire(struct lockdep_map *lock, unsigned int subclass,
                return 0;
        }
 
+       if (lock->key == &__lockdep_no_validate__)
+               check = 1;
+
        if (!subclass)
                class = lock->class_cache;
        /*