blkcg: add generic throttling mechanism
[linux-block.git] / lib / test_overflow.c
index aecbbb2173052229c9b28bbb5852a0e691c4b46b..2278fe05a1b0a033f3120a7a1927b982c103f5bb 100644 (file)
@@ -367,7 +367,7 @@ static int __init test_overflow_allocation(void)
 
        /* Create dummy device for devm_kmalloc()-family tests. */
        dev = root_device_register(device_name);
-       if (!dev) {
+       if (IS_ERR(dev)) {
                pr_warn("Cannot register test device\n");
                return 1;
        }