Hi, On Mon, Aug 8, 2016 at 1:41 PM, Luiz Augusto von Dentz <luiz.dentz@xxxxxxxxx> wrote: > From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> > > If the profile don't implement .accept callback it means it cannot > connect in this mode, which is normally used for GATT profiles, so the > code shall not assume the profile will be connecting and instead just > return an error. > --- > src/service.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/service.c b/src/service.c > index 0da14ab..f387fc4 100644 > --- a/src/service.c > +++ b/src/service.c > @@ -197,7 +197,7 @@ int service_accept(struct btd_service *service) > } > > if (!service->profile->accept) > - goto done; > + return -ENOSYS; > > err = service->profile->accept(service); > if (!err) > -- > 2.7.4 Applied. -- Luiz Augusto von Dentz -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html