Files
linux/net/core
Christophe JAILLET bd03e7627c rtnetlink: Fix an error handling path in rtnl_newlink()
When some code has been moved in the commit in Fixes, some "return err;"
have correctly been changed in goto <some_where_in_the_error_handling_path>
but this one was missed.

Should "ops->maxtype > RTNL_MAX_TYPE" happen, then some resources would
leak.

Go through the error handling path to fix these leaks.

Fixes: 0d3008d1a9 ("rtnetlink: Move ops->validate to rtnl_newlink().")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/eca90eeb4d9e9a0545772b68aeaab883d9fe2279.1729952228.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-10-30 18:26:58 -07:00
..
2024-10-14 17:54:29 -07:00
2024-10-14 17:54:29 -07:00
2024-09-11 20:44:32 -07:00
2024-10-15 18:52:26 -07:00
2024-03-07 21:12:41 -08:00
2024-10-28 18:12:06 -07:00
2024-10-15 18:52:26 -07:00
2024-04-01 10:49:28 +01:00
2024-09-11 20:44:31 -07:00
2024-09-02 18:43:58 +02:00
2024-06-06 11:52:52 +02:00
2024-08-26 09:37:23 -07:00