]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rocker: replace fixed stack allocation with dynamic allocation
authorScott Feldman <sfeldma@gmail.com>
Mon, 16 Mar 2015 06:04:46 +0000 (23:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2015 19:56:36 +0000 (15:56 -0400)
commit04f49faf70d4c056cd6576ff0614bb54e7a70bbc
tree3491cfb14f4fb8636eea6979a8163dbf7aff8dcc
parentb35f504a0c2631d57ebbb5b5b85a9055f62dce88
rocker: replace fixed stack allocation with dynamic allocation

In hast to fix some sparse warning, I hard-coded a fix-sized array on the stack
which is probably too big for kernel standards.  Fix this by converting array
to dynamic allocation.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker.c