drivers: stepper: tmc50xx: add a null pointer check
Check if the actual velocity pointer is NULL or not, if its null return
-EINVAL in order to avoid null pointer dereferencing later in code
Signed-off-by:
Jilay Pandya <jilay.pandya@outlook.com>
Loading
Please sign in to comment