Skip to content
Commit a0c05bc0 authored by Dan Carpenter's avatar Dan Carpenter Committed by Liwei Song
Browse files

thunderbolt: debugfs: Fix uninitialized return in counters_write()



commit 77e4907f upstream.

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>
Signed-off-by: default avatarLiwei Song <liwei.song@windriver.com>
parent 3379dc89
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