Project

General

Profile

Actions

Bug #6539

open

Variable 'len' is never used in zone_set_initname().

Added by Ryan Moeller almost 8 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
zones
Start date:
2015-12-31
Due date:
% Done:

0%

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

Description

The variable 'len' is set by the call to copyinstr() and then never used. In fact, the whole function seems a bit off. The function could probably could look more like zone_set_bootargs() and zone_set_fs_allowed().

This doesn't seem like a very serious bug, just a bit odd.

For reference, here's the function:
http://src.illumos.org/source/xref/illumos-gate/usr/src/uts/common/os/zone.c#2447

zone_set_bootargs() and zone_fs_allowed() are defined just above zone_set_initname()

No data to display

Actions

Also available in: Atom PDF