commit | d84e291a1c66a2dd6e1ef4c339aa4c72888bbc1f | [log] [tgz] |
---|---|---|
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | Tue May 21 10:46:50 2024 +0200 |
committer | Stefan Roese <sr@denx.de> | Sun Jun 16 12:13:38 2024 +0200 |
tree | 76cd5910133c54834d15562e0addeda1cf969e02 | |
parent | b2835c56af5ead026ce067bb4a83a81e0f2631a9 [diff] |
cyclic: stop strdup'ing name in cyclic_register() We are not checking the return value of strdup(), nor freeing the string in cyclic_unregister(). However, all current users either pass a string literal or the dev->name of the client device. So in all cases the name string will live at least as long as the cyclic_info is registered, so just make that a requirement. Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>