Jiri Pirko c10e6cf85e 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>
2019-10-06 15:44:46 +02:00
..
2019-09-27 15:10:34 -07:00
2019-07-12 16:03:16 -07:00
2019-10-02 14:47:51 -07:00
2019-09-26 08:56:17 +02:00
2019-10-04 13:58:33 -07:00
2019-08-20 12:25:14 -07:00
2019-09-27 17:00:27 -07:00