mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07: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:
committed by
Jakub Kicinski
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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user