From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> --- profiles/network/bnep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/network/bnep.c b/profiles/network/bnep.c index b8d2985..18051c3 100644 --- a/profiles/network/bnep.c +++ b/profiles/network/bnep.c @@ -162,7 +162,7 @@ static int bnep_conndel(const bdaddr_t *dst) memset(&req, 0, sizeof(req)); baswap((bdaddr_t *)&req.dst, dst); req.flags = 0; - if (ioctl(ctl, BNEPCONNDEL, &req)) { + if (ioctl(ctl, BNEPCONNDEL, &req) < 0) { int err = -errno; error("bnep: Failed to kill connection: %s (%d)", strerror(-err), -err); -- 1.9.1 -- 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