lib/waiter: fix talloc_realloc context
authorJeremy Kerr <jk@ozlabs.org>
Wed, 14 Aug 2013 06:17:02 +0000 (14:17 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 16 Aug 2013 06:41:08 +0000 (14:41 +0800)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
lib/waiter/waiter.c

index b36c1afdac35450139ad318c9c7f7e1c8462f699..13b0d68fc05ac6a32a03aea748377d0da03c226e 100644 (file)
@@ -138,7 +138,7 @@ void waiter_remove(struct waiter *waiter)
        memmove(&set->waiters[i], &set->waiters[i+1],
                (set->n_waiters - i) * sizeof(set->waiters[0]));
 
-       set->waiters = talloc_realloc(set->waiters, set->waiters,
+       set->waiters = talloc_realloc(set, set->waiters,
                        struct waiter *, set->n_waiters);
        set->waiters_changed = true;