Re: [PATCH v2 5/5] Input: evdev - Switch to bitmap_zalloc()
From: Joe Perches
Date: Mon Jun 18 2018 - 16:40:30 EST
On Mon, 2018-06-18 at 22:56 +0300, Andy Shevchenko wrote:
> On Mon, Jun 18, 2018 at 6:49 PM, Joe Perches <joe@xxxxxxxxxxx> wrote:
> > Perhaps bitmap_dup_user [or some better name] could or should
> > be one of the helpers.
>
> Can you help with estimation how many existing users need this kind of
> functionality? One of them evdev, which has an open coded variant.
My estimation via cocci script below is 1 existing user,
so it's almost certainly not worthwhile.
$ cat copy_from_user.cocci
@@
unsigned long *p;
expression e1, e2;
@@
* copy_from_user(p, e1, e2)