aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test_overflow.c')
-rw-r--r--lib/test_overflow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_overflow.c b/lib/test_overflow.c
index aecbbb217305..2278fe05a1b0 100644
--- a/lib/test_overflow.c
+++ b/lib/test_overflow.c
@@ -367,7 +367,7 @@ static int __init test_overflow_allocation(void)
367 367
368 /* Create dummy device for devm_kmalloc()-family tests. */ 368 /* Create dummy device for devm_kmalloc()-family tests. */
369 dev = root_device_register(device_name); 369 dev = root_device_register(device_name);
370 if (!dev) { 370 if (IS_ERR(dev)) {
371 pr_warn("Cannot register test device\n"); 371 pr_warn("Cannot register test device\n");
372 return 1; 372 return 1;
373 } 373 }