]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Use correct type while allocating flex array.
authorPravin B Shelar <pshelar@nicira.com>
Tue, 30 Jul 2013 22:44:14 +0000 (15:44 -0700)
committerJesse Gross <jesse@nicira.com>
Wed, 14 Aug 2013 22:48:17 +0000 (15:48 -0700)
commitd33a81cb82c8bd475680d5c10982936b15fc5df9
tree0857d63fdc8424b3ba8cbf688a4320674a29549e
parentb5196b341277f442eacfaacd8d7b05ed13da4e21
openvswitch: Use correct type while allocating flex array.

Flex array is used to allocate hash buckets which is type struct
hlist_head, but we use `struct hlist_head *` to calculate
array size.  Since hlist_head is of size pointer it works fine.

Following patch use correct type.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/flow.c