[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5750611d-4c41-449a-ab37-9b234360929d@web.de>
Date: Tue, 23 Apr 2024 13:10:57 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Kunwu Chan <chentao@...inos.cn>, linux-kselftest@...r.kernel.org,
kvm@...r.kernel.org, kernel-janitors@...r.kernel.org,
Muhammad Usama Anjum <usama.anjum@...labora.com>,
Paolo Bonzini <pbonzini@...hat.com>, Shuah Khan <shuah@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>, Kunwu Chan <kunwu.chan@...mail.com>
Subject: Re: [PATCH] KVM: selftests: Add 'malloc' failure check in config_name
…
> This patch will add the malloc failure checking
…
* Please use a corresponding imperative wording for the change description.
* Would you like to add the tag “Fixes” accordingly?
…
> +++ b/tools/testing/selftests/kvm/get-reg-list.c
> @@ -66,6 +66,7 @@ static const char *config_name(struct vcpu_reg_list *c)
> len += strlen(s->name) + 1;
>
> c->name = malloc(len);
> + TEST_ASSERT(c->name, "-ENOMEM when allocating config name");
…
Can “errno” be relevant for the error message construction?
Regards,
Markus
Powered by blists - more mailing lists