]> git.baikalelectronics.ru Git - kernel.git/commit
net: drop_monitor: Use kstrdup
authorJoe Perches <joe@perches.com>
Tue, 28 Jan 2020 19:02:50 +0000 (11:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jan 2020 09:03:37 +0000 (10:03 +0100)
commitce1c1d3c9025757fe6a34c8a10ae3ab17c60f042
treead831f1b4024150771c72ef7c3a24159c4484301
parentb31f8f1365a386b767e17f4e0fe4f224dacfbd36
net: drop_monitor: Use kstrdup

Convert the equivalent but rather odd uses of kmemdup with
__GFP_ZERO to the more common kstrdup and avoid unnecessary
zeroing of copied over memory.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/drop_monitor.c