mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
netlabel: fix IPv6 unlabeled address add error handling
netlbl_unlhsh_add_addr6() always returned zero after netlbl_af6list_add(), masking failures such as duplicate IPv6 static label entries. Signed-off-by: Chenguang Zhao <zhaochenguang@kylinos.cn> Acked-by: Paul Moore <paul@paul-moore.com> Link: https://patch.msgid.link/20260522022910.398416-1-zhaochenguang@kylinos.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
67636cab27
commit
56872b930f
|
|
@ -295,7 +295,7 @@ static int netlbl_unlhsh_add_addr6(struct netlbl_unlhsh_iface *iface,
|
|||
|
||||
if (ret_val != 0)
|
||||
kfree(entry);
|
||||
return 0;
|
||||
return ret_val;
|
||||
}
|
||||
#endif /* IPv6 */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user