]> git.baikalelectronics.ru Git - kernel.git/commit
liquidio: Replace vmalloc with kmalloc in octeon_register_dispatch_fn()
authorWang Hai <wanghai38@huawei.com>
Thu, 30 Jul 2020 06:11:40 +0000 (14:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2020 00:40:11 +0000 (17:40 -0700)
commitc1785aefc7e1e11c42a6b6205271bfe06e14cfda
treefad42cd7102ceb7ff9eab46188c7142bf3f97336
parent71dd24f145afadd2b19d60096b8044dce820f969
liquidio: Replace vmalloc with kmalloc in octeon_register_dispatch_fn()

The size of struct octeon_dispatch is too small, it is better to use
kmalloc instead of vmalloc.

Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/octeon_device.c