Skip to content
Commit 3a11eada authored by Rasmus Villemoes's avatar Rasmus Villemoes Committed by Stefan Roese
Browse files

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: default avatarStefan Roese <sr@denx.de>
Signed-off-by: default avatarRasmus Villemoes <rasmus.villemoes@prevas.dk>
parent 0786dd57
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment