lkml.org 
[lkml]   [2017]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] net: don't call strlen on non-terminated string in dev_set_alias()
On Wed, 31 May 2017 14:51:50 +0200
Alexander Potapenko <glider@google.com> 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.

\
 
 \ /
  Last update: 2017-05-31 17:37    [W:0.028 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site