diff options
author | Moshe Shemesh <[email protected]> | 2018-10-10 16:09:27 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-10-10 10:19:10 -0700 |
commit | bde74ad10eb55aaa472c37b107934e6b8563c25e (patch) | |
tree | 834c7d34a735b3be2621f897c76275bd6427f694 /tools/perf/scripts/python/event_analyzing_sample.py | |
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 <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions