X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Fflow.c;h=21e956c2d385b28761cc8e4714edb3c7b03a1ddd;hb=8e1a83d8f335932fd210c079bcb96c82e790e373;hp=c6a90b93687addc8f9d045c9997fbfec623689ac;hpb=994dea5bf4c1c5a760be608cc60e25734fd2524e;p=sliver-openvswitch.git diff --git a/datapath/flow.c b/datapath/flow.c index c6a90b936..21e956c2d 100644 --- a/datapath/flow.c +++ b/datapath/flow.c @@ -429,7 +429,7 @@ static struct flex_array *alloc_buckets(unsigned int n_buckets) struct flex_array *buckets; int i, err; - buckets = flex_array_alloc(sizeof(struct hlist_head *), + buckets = flex_array_alloc(sizeof(struct hlist_head), n_buckets, GFP_KERNEL); if (!buckets) return NULL;