lkml.org 
[lkml]   [2019]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v12 10/18] kunit: test: add tests for kunit test abort
From
Date
Quoting Brendan Higgins (2019-08-12 11:24:13)
> +
> +static int kunit_try_catch_test_init(struct kunit *test)
> +{
> + struct kunit_try_catch_test_context *ctx;
> +
> + ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL);

Can this fail? Should return -ENOMEM in that case?

> + test->priv = ctx;
> +
> + ctx->try_catch = kunit_kmalloc(test,
> + sizeof(*ctx->try_catch),
> + GFP_KERNEL);

\
 
 \ /
  Last update: 2019-08-13 06:26    [W:0.232 / U:31.836 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site