Revision 3d53afea525f5812da782624014e7910ba731b34 authored by Rafael J. Wysocki on 10 September 2021, 12:45:57 UTC, committed by Rafael J. Wysocki on 10 September 2021, 12:45:57 UTC
I have been slow to respond to messages going to rjw@rjwysocki.net recently, so change it to rafael@kernel.org (which works better for me) in MAINTAINERS. Signed-off-by: Rafael J. Wysocki <rafael@kernel.org>
1 parent 30f3490
util.c
#include <linux/dcache.h>
#include "internal.h"
unsigned name_to_int(const struct qstr *qstr)
{
const char *name = qstr->name;
int len = qstr->len;
unsigned n = 0;
if (len > 1 && *name == '0')
goto out;
do {
unsigned c = *name++ - '0';
if (c > 9)
goto out;
if (n >= (~0U-9)/10)
goto out;
n *= 10;
n += c;
} while (--len > 0);
return n;
out:
return ~0U;
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...