]> Git Repo - linux.git/commit
net: genetlink: push attrbuf allocation and parsing to a separate function
authorJiri Pirko <[email protected]>
Sat, 5 Oct 2019 18:04:35 +0000 (20:04 +0200)
committerDavid S. Miller <[email protected]>
Sun, 6 Oct 2019 13:44:46 +0000 (15:44 +0200)
commitc10e6cf85e7d984a156052daeedaf20a1f38824f
tree0bf717b0b51b394899fe5f043a0d3b03f46fb7d7
parent1927f41a22a05e3bc178fa47f7ce7be271fbc541
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/netlink/genetlink.c
This page took 0.054053 seconds and 4 git commands to generate.