Skip to content
Commit 77e4907f authored by Dan Carpenter's avatar Dan Carpenter Committed by Mika Westerberg
Browse files

thunderbolt: debugfs: Fix uninitialized return in counters_write()



If the first line is in an invalid format then the "ret" value is
uninitialized.  We should return -EINVAL instead.

Fixes: 54e41810 ("thunderbolt: Add debugfs interface")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 54e41810
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