Project

General

Profile

Bug #4356

nl7c has duplicate strdup()

Added by Dan McDonald over 6 years ago. Updated over 6 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
-
Start date:
2013-11-25
Due date:
% Done:

60%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

The nl7c kernel module has its own strdup(), which is redundant.

289/*
290 * strdup(), yet another strdup() in the kernel.
291 */
292
293static char *
294strdup(char *s)
295{
296 int len = strlen(s) + 1;
297 char *ret = kmem_alloc(len, KM_SLEEP);
298
299 bcopy(s, ret, len);
300
301 return (ret);
302}
303

History

#1

Updated by Bart Coddens over 6 years ago

  • % Done changed from 0 to 60
  • Assignee set to Bart Coddens
  • Status changed from New to In Progress

Working on this

Also available in: Atom PDF