diff options
author | Moshe Shemesh <moshe@mellanox.com> | 2018-10-10 16:09:27 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-10 10:19:10 -0700 |
commit | bde74ad10eb55aaa472c37b107934e6b8563c25e (patch) | |
tree | 834c7d34a735b3be2621f897c76275bd6427f694 /block | |
parent | 1276534c988ba752fa01bf090412a877ee783829 (diff) |
devlink: Add helper function for safely copy string param
Devlink string param buffer is allocated at the size of
DEVLINK_PARAM_MAX_STRING_VALUE. Add helper function which makes sure
this size is not exceeded.
Renamed DEVLINK_PARAM_MAX_STRING_VALUE to
__DEVLINK_PARAM_MAX_STRING_VALUE to emphasize that it should be used by
devlink only. The driver should use the helper function instead to
verify it doesn't exceed the allowed length.
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions