[PATCH net 0/3] devlink param type string fixes

From: Moshe Shemesh
Date: Wed Oct 10 2018 - 10:09:55 EST


This patchset fixes devlink param infrastructure for string param type.

The devlink param infrastructure doesn't handle copying the string data
correctly. The first two patches fix it and the third patch adds helper
function to safely copy string value without exceeding
DEVLINK_PARAM_MAX_STRING_VALUE.

Moshe Shemesh (3):
devlink: Fix param set handling for string type
devlink: Fix param cmode driverinit for string type
devlink: Add helper function for safely copy string param

include/net/devlink.h | 12 ++++++++++--
net/core/devlink.c | 43 +++++++++++++++++++++++++++++++++++++------
2 files changed, 47 insertions(+), 8 deletions(-)

--
1.8.3.1