Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1931782b authored by Vinicius Costa Gomes's avatar Vinicius Costa Gomes Committed by Johan Hedberg
Browse files

Bluetooth: Fix using an absolute timeout on hci_conn_put()



queue_delayed_work() expects a relative time for when that work
should be scheduled.

Signed-off-by: default avatarVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent cc48dc0a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -588,7 +588,7 @@ static inline void hci_conn_put(struct hci_conn *conn)
		}
		cancel_delayed_work_sync(&conn->disc_work);
		queue_delayed_work(conn->hdev->workqueue,
					&conn->disc_work, jiffies + timeo);
					&conn->disc_work, timeo);
	}
}