thunderbolt: debugfs: Fix uninitialized return in counters_write()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 10 Sep 2020 10:08:05 +0000 (13:08 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 10 Sep 2020 16:39:56 +0000 (19:39 +0300)
commit77e4907fa620af102f4571d4edb0dcc95b4fa083
tree7eaf8cd3dae8dcc3b18cab08e521d5c64440d8dc
parent54e418106c765c5f3c378c770b0f8518632830da
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: 54e418106c76 ("thunderbolt: Add debugfs interface")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/debugfs.c