staging: netlogic: allocate right size in devm_kzalloc
authorRavindran, Madhusudhanan (M.) <mravindr@visteon.com>
Fri, 13 Mar 2015 13:12:37 +0000 (13:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Mar 2015 13:13:17 +0000 (14:13 +0100)
commit4bc88f63d7af89831fac82b67625f3e19156abba
tree9f2869ca6d3b7b8a0c89c3b92168639bbfdb4b47
parent877945759df5ff6e7fb434cb5b6cddb606c2f66f
staging: netlogic: allocate right size in devm_kzalloc

sizeof when applied to a pointer typed expression gives
the size of the pointer.

The semantic patch that makes this change is available
in scripts/coccinelle/misc/noderef.cocci.

Signed-off-by: Madhusudhanan Ravindran <mravindr@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/netlogic/xlr_net.c