]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: Fix an error code in rtw_debugfs_set_rsvd_page()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 15 Mar 2021 09:23:37 +0000 (12:23 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 11 Apr 2021 09:29:06 +0000 (12:29 +0300)
commitb183e5ce547323c8dfd015696e58de43506d1dee
treec147bd15c464a55f601f440e3f49ae78df2516fa
parent1c147b845fe6662d533badde9b7df7fcd19589d6
rtw88: Fix an error code in rtw_debugfs_set_rsvd_page()

The sscanf() function returns the number of matches (0 or 1 in this
case).  It doesn't return error codes.  We should return -EINVAL if the
string is invalid

Fixes: 4fae9899e5a2 ("rtw88: add h2c command in debugfs")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/YE8nmatMDBDDWkjq@mwanda
drivers/net/wireless/realtek/rtw88/debug.c