diff options
Diffstat (limited to 'lib/kunit/executor_test.c')
| -rw-r--r-- | lib/kunit/executor_test.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lib/kunit/executor_test.c b/lib/kunit/executor_test.c index cdbe54b16501..e14a18af573d 100644 --- a/lib/kunit/executor_test.c +++ b/lib/kunit/executor_test.c @@ -116,8 +116,8 @@ static void kfree_at_end(struct kunit *test, const void *to_free)  	/* kfree() handles NULL already, but avoid allocating a no-op cleanup. */  	if (IS_ERR_OR_NULL(to_free))  		return; -	kunit_alloc_and_get_resource(test, NULL, kfree_res_free, GFP_KERNEL, -				     (void *)to_free); +	kunit_alloc_resource(test, NULL, kfree_res_free, GFP_KERNEL, +			     (void *)to_free);  }  static struct kunit_suite *alloc_fake_suite(struct kunit *test, |