]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit55f831c3e9f5d1e366f8bc52987d5152b510a392
tree93fd127a614068605ac9b811ed00bd8dbc618fdc
parent1a67366e2a5df1ff1883606a93929dbd15abb03f
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: f8e96eb1accb ("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