projects
/
platform
/
core
/
system
/
kdbus-bus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d75b7e6
)
connection: add BUG_ON for pending work at connection free()
author
Kay Sievers
<kay@vrfy.org>
Sun, 18 May 2014 10:00:09 +0000
(12:00 +0200)
committer
Kay Sievers
<kay@vrfy.org>
Sun, 18 May 2014 10:00:09 +0000
(12:00 +0200)
connection.c
patch
|
blob
|
history
diff --git
a/connection.c
b/connection.c
index 367e463d66712da41edc3f27039c0713a1fcb85b..e8e9c7827f182dfdd585f2e8c5d119bc49c479d5 100644
(file)
--- a/
connection.c
+++ b/
connection.c
@@
-1533,6
+1533,7
@@
static void __kdbus_conn_free(struct kref *kref)
struct kdbus_conn *conn = container_of(kref, struct kdbus_conn, kref);
BUG_ON(kdbus_conn_active(conn));
+ BUG_ON(delayed_work_pending(&conn->work));
BUG_ON(!list_empty(&conn->msg_list));
BUG_ON(!list_empty(&conn->names_list));
BUG_ON(!list_empty(&conn->names_queue_list));