OSDN Git Service

devlink: Fix param set handling for string type
authorMoshe Shemesh <moshe@mellanox.com>
Wed, 10 Oct 2018 13:09:25 +0000 (16:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Oct 2018 17:19:10 +0000 (10:19 -0700)
commitf355cfcdb251e22b9dfb78c0eef4005a9d902a35
tree93fd127a614068605ac9b811ed00bd8dbc618fdc
parent4cf34c0cf60e328b72ae17016b7c12fc66dbf76b
devlink: Fix param set handling for string type

In case devlink param type is string, it needs to copy the string value
it got from the input to devlink_param_value.

Fixes: e3b7ca18ad7b ("devlink: Add param set command")
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/devlink.h
net/core/devlink.c