Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp481676pxb; Wed, 14 Apr 2021 22:05:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxae67QoaJsgUxrUrUysO18HGUU5c/Q3SM8lAuY5Td7J6rIl+EiKkioWYFfJDEOAb88igKj X-Received: by 2002:a62:7cd0:0:b029:253:acca:2ce0 with SMTP id x199-20020a627cd00000b0290253acca2ce0mr1628727pfc.30.1618463145603; Wed, 14 Apr 2021 22:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618463145; cv=none; d=google.com; s=arc-20160816; b=a+BjlY96R4OP9alrE3mC/Ab5ikAYk1dBb1rdQVYuOyJqctVEY1Qs1cY6Vt808rVgAT G4OzedcWwx6SS755VqJInh7G0YT+sOGYWsp0cXQ+Sbsje9awnxTXhknPSdmCuUrIyFWg 521g7bW1dxz00UYYxQVNw0FKeT5/5xNqTsZoN2nopD6jwJYF0XKWoxGQ5zgDlC9A5BND 4feMBfxbqGMyREAVo+PUthBP+KTYbG/yZDoOdMNZb2pGqIG7MessuZzPCz81Mj7z5Bdn B3CzMAXfIJL/5186Yw/ASjKV5oKhEtlPWiNFNzqzkcpX6GG+JGC0lDEpHP2WbkUCWbN1 8RKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=I70exw9DFx+xxUMRDsuxnmG6dUYpNs/heBAL/AwIXfA=; b=LYwU7LOn44fnwqCdCZgEMjgmDt9YtCE7X90bZ2TEoc1HmirNOiKG9Q44eznan8CB5V Q/GmOSjZWYTawOuUnSBTPO1z+UC1/sFMwJvPpw0jiO35E400ltK0Ppy9bVrV1laxiuxN 39AzdNS5bD7Q1KAY2N448EhdgeZUbNj1Z25EKrqFMlh+uWt6cPVSQZ8lqKqH6jNtpi5o 78h7MNy2iPD2STzmO3mdV1+z+gBdrrmsqcIXd7FU4xrqYXSIHRFaR433lxzPHQ7EJLrW b7wWyg5Qukue0NOsIPnSnPHvsL3Q2EV2Q5jfJWV46rL+y6QiDFloGZZP8P549BMC/L8M 1NPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x6si1417167pfm.286.2021.04.14.22.05.14; Wed, 14 Apr 2021 22:05:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229887AbhDOFER (ORCPT + 99 others); Thu, 15 Apr 2021 01:04:17 -0400 Received: from mga03.intel.com ([134.134.136.65]:61646 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229973AbhDOFEQ (ORCPT ); Thu, 15 Apr 2021 01:04:16 -0400 IronPort-SDR: kVmcZU/a/0l/S5njz6exa9cLZDH7yDqLeioodso+Eux9FM2T0JYM9zbhIuaPKLmJ3RGyISaWz0 RgsdomYe1jYA== X-IronPort-AV: E=McAfee;i="6200,9189,9954"; a="194811737" X-IronPort-AV: E=Sophos;i="5.82,223,1613462400"; d="scan'208";a="194811737" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2021 22:03:54 -0700 IronPort-SDR: Zflic4OeiGAukdM/Jk3dnTLRQkad64ieUkIFENKFDwzGQTp5n9VD6FW2SHR4VAssxhi+7RvE47 mSMFljLSfOqg== X-IronPort-AV: E=Sophos;i="5.82,223,1613462400"; d="scan'208";a="421570739" Received: from kkomiris-mobl.amr.corp.intel.com (HELO istotlan-desk.intel.com) ([10.251.25.8]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2021 22:03:54 -0700 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: Inga Stotland Subject: [PATCH BlueZ] shared/timeout-ell: Fix timeout_add() implementation Date: Wed, 14 Apr 2021 22:03:47 -0700 Message-Id: <20210415050347.253831-1-inga.stotland@intel.com> X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Since timeout_add() expects the timeout in milliseconds, the correct ELL primitive to call is l_timeout_create_ms() --- src/shared/timeout-ell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/timeout-ell.c b/src/shared/timeout-ell.c index 6416d8590..026286926 100644 --- a/src/shared/timeout-ell.c +++ b/src/shared/timeout-ell.c @@ -68,7 +68,7 @@ unsigned int timeout_add(unsigned int timeout, timeout_func_t func, data->timeout = timeout; while (id == 0 && tries < 3) { - to = l_timeout_create(timeout, timeout_callback, + to = l_timeout_create_ms(timeout, timeout_callback, data, timeout_destroy); if (!to) break; -- 2.26.3