diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-31 15:36:35 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-31 15:36:35 +0100 |
| commit | 41278505416d0546bc2988bcb6c71538c5b3db88 (patch) | |
| tree | 4b8b57c110fffd0a7dc8ad3dc5718d27f1ed4b7b | |
| parent | f03de5415d4395970c42dfb391101101d169ecfc (diff) | |
| download | patches-41278505416d0546bc2988bcb6c71538c5b3db88.tar.gz | |
fix comments about idr
| -rw-r--r-- | 0001-kdbus-interprocess-message-router.patch | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/0001-kdbus-interprocess-message-router.patch b/0001-kdbus-interprocess-message-router.patch index c563642cdf968c..5f42c13498fa83 100644 --- a/0001-kdbus-interprocess-message-router.patch +++ b/0001-kdbus-interprocess-message-router.patch @@ -10,13 +10,13 @@ Nothing to see here, move along... drivers/kdbus/Makefile | 4 drivers/kdbus/bus.c | 122 ++++++++ drivers/kdbus/ep.c | 200 ++++++++++++++ - drivers/kdbus/kdbus.c | 611 +++++++++++++++++++++++++++++++++++++++++++++ + drivers/kdbus/kdbus.c | 613 +++++++++++++++++++++++++++++++++++++++++++++ drivers/kdbus/kdbus.h | 185 +++++++++++++ drivers/kdbus/ns.c | 217 +++++++++++++++ include/uapi/kdbus/kdbus.h | 123 +++++++++ include/uapi/linux/major.h | 2 kdbus.c | 77 +++++ - 12 files changed, 1549 insertions(+) + 12 files changed, 1551 insertions(+) --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -379,7 +379,7 @@ Nothing to see here, move along... + --- /dev/null +++ b/drivers/kdbus/kdbus.c -@@ -0,0 +1,611 @@ +@@ -0,0 +1,613 @@ +/* + * kdbus - interprocess message routing + * @@ -531,6 +531,8 @@ Nothing to see here, move along... + goto err_unlock; + } + /* FIXME: get 64 bit working, this will fail for the 2^31th connection */ ++ /* use a hash table to get 64bit ids working properly, idr is the wrong ++ * thing to use here. */ + err = idr_get_new_above(&conn->ep->bus->conn_idr, conn, conn->id, &i); + if (err >= 0 && conn->id != i) { + idr_remove(&conn->ep->bus->conn_idr, i); |
