Moshe Shemesh bde74ad10e 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>
2018-10-10 10:19:10 -07:00
..
2018-07-24 14:10:42 -07:00
2018-07-30 09:10:25 -07:00
2018-08-27 15:24:33 -07:00
2018-08-13 20:45:49 -07:00
2018-09-24 12:19:27 -07:00
2018-10-04 21:45:16 -07:00
2018-09-23 12:25:15 -07:00
2018-09-28 10:33:17 +01:00
2018-10-03 09:33:13 -07:00
2018-08-23 16:03:58 -07:00
2018-07-24 14:10:42 -07:00
2018-07-24 14:10:42 -07:00
2018-07-24 14:10:43 -07:00