]> 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)
commit30ffacc661dd17f927f657fa40046cfceacbff83
tree93fd127a614068605ac9b811ed00bd8dbc618fdc
parent499dfd78111b7e4aa1d847b085507f72b4583d45
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: de5c9501f9d9 ("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