Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0442afb3 authored by Hemant Gupta's avatar Hemant Gupta Committed by Gerrit - the friendly Code Review server
Browse files

HID: Add return types for input_configured func ptr



This patch adds proper return types to input_configured function pointer
in hid 3rd party drivers. Without this patch, there was mismatch in return
type leading to failure in hidinput_connect, which subsequently causes
failure in hid_connect->hid_hw_start-><hid_driver>_probe. This failure
results in subsequent kernel crash as driver structure is freed during
probe failure, and any subsequent write to driver results in crash.

The change in prototypes for input_configured were done as part of
commit 274ba2dc ("HID: Add input_register callback."), leading to the
kernel crash.

Change-Id: I7fb442fca54e419ac11236706170c09caedd2ecf
CRs-Fixed: 982154
Signed-off-by: default avatarHemant Gupta <hemantg@codeaurora.org>
parent bfb07a5c
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