summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2019-10-05 20:04:35 +0200
committerDavid S. Miller <davem@davemloft.net>2019-10-06 15:44:46 +0200
commitc10e6cf85e7d984a156052daeedaf20a1f38824f (patch)
tree0bf717b0b51b394899fe5f043a0d3b03f46fb7d7 /include/net
parent1927f41a22a05e3bc178fa47f7ce7be271fbc541 (diff)
downloadlinux-c10e6cf85e7d984a156052daeedaf20a1f38824f.tar.gz
linux-c10e6cf85e7d984a156052daeedaf20a1f38824f.tar.bz2
linux-c10e6cf85e7d984a156052daeedaf20a1f38824f.zip
net: genetlink: push attrbuf allocation and parsing to a separate function
To be re-usable by dumpit as well, push the code that is taking care of attrbuf allocation and parting from doit into separate function. Introduce a helper to free the buffer too. Check family->maxattr too before calling kfree() to be symmetrical with the allocation check. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions