diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2021-05-08 10:47:37 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-10 12:41:35 +0200 |
commit | 17970e1d9850c2b9f88f55f915dba7eab99d29d6 (patch) | |
tree | e515bfde574397c25c68933b5c0c3935c0808872 /net/netfilter | |
parent | 11ccd03a20cb5ff4df1586db4f68a8cf45b84139 (diff) |
HID: pidff: fix error return code in hid_pidff_init()
[ Upstream commit 3dd653c077efda8152f4dd395359617d577a54cd ]
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Fixes: 224ee88fe395 ("Input: add force feedback driver for PID devices")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/netfilter')
0 files changed, 0 insertions, 0 deletions