diff options
| author | Hans de Goede <johannes.goede@oss.qualcomm.com> | 2026-09-09 11:39:34 +0200 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-09-13 16:42:49 -0700 |
| commit | fb5022278b6ea7f1838e3ef78028d5d5e3375f65 (patch) | |
| tree | b80a3014a9f6168a0909efb6b5dcf783dca32d35 /include | |
| parent | ed22ad5fdbdbf9b4cb4ad3003f60314b5a5eb89d (diff) | |
Input: soc_button_array - check btns_desc->package.count
Check that btns_desc->package.count is not 0 before accessing
btns_desc->package.elements[0].
Fixes: 4c3362f44980 ("Input: soc_button_array - add support for ACPI 6.0 Generic Button Device")
Cc: stable@vger.kernel.org
Reported-by: Shashiko <sashiko-bot@kernel.org>
Closes: https://lore.kernel.org/linux-input/20260909091440.3384C1F00A3A@smtp.kernel.org/
Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Link: https://patch.msgid.link/20260909093934.29411-2-johannes.goede@oss.qualcomm.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
