diff options
| author | Jarkko Nikula <jarkko.nikula@linux.intel.com> | 2015-09-30 09:26:42 -0400 |
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2015-10-01 04:03:37 -0400 |
| commit | 5be00284dc85dadd5241833fbca645c19baebebb (patch) | |
| tree | 231dfa3da07ed824e9ccd00d8a671bcddc30028f | |
| parent | 09dbf1b7847ca09afb4616021fdc928452511888 (diff) | |
Bluetooth: hci_bcm: Handle possible error from acpi_dev_get_resources()
Driver doesn't handle possible error from acpi_dev_get_resources(). Test it
and return the error code in case of error.
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
| -rw-r--r-- | drivers/bluetooth/hci_bcm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c index 1a538ad6bf2b..5375c9c04fda 100644 --- a/drivers/bluetooth/hci_bcm.c +++ b/drivers/bluetooth/hci_bcm.c | |||
| @@ -705,7 +705,9 @@ static int bcm_acpi_probe(struct bcm_device *dev) | |||
| 705 | if (!adev) | 705 | if (!adev) |
| 706 | return 0; | 706 | return 0; |
| 707 | 707 | ||
| 708 | acpi_dev_get_resources(adev, &resources, bcm_resource, dev); | 708 | ret = acpi_dev_get_resources(adev, &resources, bcm_resource, dev); |
| 709 | if (ret < 0) | ||
| 710 | return ret; | ||
| 709 | acpi_dev_free_resource_list(&resources); | 711 | acpi_dev_free_resource_list(&resources); |
| 710 | 712 | ||
| 711 | dmi_id = dmi_first_match(bcm_wrong_irq_dmi_table); | 713 | dmi_id = dmi_first_match(bcm_wrong_irq_dmi_table); |
