diff options
author | Lukas Wunner <[email protected]> | 2018-01-10 16:32:10 +0100 |
---|---|---|
committer | Marcel Holtmann <[email protected]> | 2018-01-10 19:00:13 +0100 |
commit | 8bfa7e1e03aca3626b82857850a1e18ae0ed291d (patch) | |
tree | 5a9c893366926985757accf5fdcf5c034857164e /net/unix/af_unix.c | |
parent | 8353b4a636f2c83de748656acc6b6a8757d7a0ff (diff) |
Bluetooth: hci_bcm: Handle errors properly
A significant portion of this driver lacks error handling. As a first
step, add error paths to bcm_gpio_set_power(), bcm_open(), bcm_close(),
bcm_suspend_device(), bcm_resume_device(), bcm_resume(), bcm_probe() and
bcm_serdev_probe(). (I've also scrutinized bcm_suspend() but think it's
fine as is.)
Those are all the functions accessing the device wake and shutdown GPIO.
On Apple Macs the pins are accessed through ACPI methods, which may fail
for various reasons, hence proper error handling is necessary. Non-Macs
access the pins directly, which may fail as well but the GPIO core does
not yet pass back errors to consumers.
Cc: Frédéric Danis <[email protected]>
Cc: Hans de Goede <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Lukas Wunner <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions