lib/waiter: allocate waiters separately from set->waiters
authorJeremy Kerr <jk@ozlabs.org>
Thu, 16 May 2013 12:39:27 +0000 (20:39 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 21 May 2013 07:29:43 +0000 (15:29 +0800)
commit7911281337857bd0f13e5945f6e70bb4af7388a0
treea428f4ad4ca7cb8aab814facc2b71577bae3759c
parent57ee6ff66071deb4e03f414ed00433061b8bef93
lib/waiter: allocate waiters separately from set->waiters

Since we reallocate set->waiters, we can't hand out pointers to within
that array.

Instead, this change allocates the 'struct waiter's separately from the
set->waiters array.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
lib/waiter/waiter.c