Fix use of errno after calling some function that could overwrite it
Fix use of errno after calling some function that could overwrite it

mapfau/bluez,pkarasev3/bluez,pkarasev3/bluez,mapfau/bluez,silent-snowman/bluez,ComputeCycles/bluez,ComputeCycles/bluez,pstglia/external-bluetooth-bluez,pstglia/external-bluetooth-bluez,silent-snowman/bluez,mapfau/bluez,silent-snowman/bluez,ComputeCycles/bluez,pkarasev3/bluez,pstglia/external-bluetooth-bluez,mapfau/bluez,pstglia/external-bluetooth-bluez,silent-snowman/bluez,pkarasev3/bluez,ComputeCycles/bluez