Re: [PATCH v2] net: don't call strlen on non-terminated string in dev_set_alias()

From: Stephen Hemminger
Date: Wed May 31 2017 - 11:37:15 EST


On Wed, 31 May 2017 14:51:50 +0200
Alexander Potapenko <glider@xxxxxxxxxx> wrote:

> + /* alias comes from the userspace and may not be zero-terminated.
> + */
> + memcpy(dev->ifalias, alias, len);

You don't need a multi-line comment here.