]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: Use struct_size() helper in kmalloc()
authorGustavo A. R. Silva <gustavoars@kernel.org>
Thu, 8 Oct 2020 14:28:06 +0000 (09:28 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 10 Oct 2020 17:34:03 +0000 (10:34 -0700)
commit62ed2591e9845c30ff5832c051160c0323421600
treedfabdf8a95db668c2440533d971d1f86fb09fbe5
parentfe79c167d4024bbb849c14b7ca03ab886d9a1de2
net: thunderx: Use struct_size() helper in kmalloc()

Make use of the new struct_size() helper instead of the offsetof() idiom.

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cavium/thunder/nicvf_main.c