[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f9edcf05-482e-dfbb-b661-c070ee1debf4@users.sourceforge.net>
Date: Wed, 7 Sep 2016 13:17:40 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: Paolo Bonzini <pbonzini@...hat.com>
Cc: Kees Cook <keescook@...omium.org>, Ingo Molnar <mingo@...hat.com>,
"x86@...nel.org" <x86@...nel.org>, Dave Young <dyoung@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>,
Matt Fleming <matt.fleming@...el.com>,
Thomas Gleixner <tglx@...utronix.de>,
LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org,
Julia Lawall <julia.lawall@...6.fr>
Subject: Re: x86-ksysfs: Use kmalloc_array() in create_setup_data_nodes()
>> Are you looking for further possibilities to improve the involved
>> source code search patterns?
>
> Why are you not answering the simple question that was asked?
I find that I answered it to some degree.
It can be that you do not really like the kind of answer that I chose
a moment ago.
But I guess that a more pleasing (and complete) answer can become
another software development challenge as you might know already.
Would the following script (for the semantic patch language)
be useful enough for further development considerations?
usage_of_kmalloc_array1-excerpt2.cocci:
@replacement2@
expression count, pointer, target;
@@
target =
- kmalloc(sizeof(*pointer) * (count)
+ kmalloc_array(count, sizeof(*pointer)
, ...);
Regards,
Markus
Powered by blists - more mailing lists