diff options
author | Sunil V L <[email protected]> | 2023-10-16 22:39:39 +0530 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2023-10-18 13:11:04 +0200 |
commit | 0c21a18d5d6c6a73d098fb9b4701572370942df9 (patch) | |
tree | e8e2846d2dbe8215afb0c1ecfaf096160196462f /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 58720809f52779dc0f08e53e54b014209d13eebb (diff) |
ACPI: irq: Fix incorrect return value in acpi_register_gsi()
acpi_register_gsi() should return a negative value in case of failure.
Currently, it returns the return value from irq_create_fwspec_mapping().
However, irq_create_fwspec_mapping() returns 0 for failure. Fix the
issue by returning -EINVAL if irq_create_fwspec_mapping() returns zero.
Fixes: d44fa3d46079 ("ACPI: Add support for ResourceSource/IRQ domain mapping")
Cc: 4.11+ <[email protected]> # 4.11+
Signed-off-by: Sunil V L <[email protected]>
[ rjw: Rename a new local variable ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions