Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: sock: fix in-kernel mark setting
[ Upstream commit dd9082f ] This patch fixes the in-kernel mark setting by doing an additional sk_dst_reset() which was introduced by commit 5025425 ("sock: Reset dst when changing sk_mark via setsockopt"). The code is now shared to avoid any further suprises when changing the socket mark value. Fixes: 84d1c61 ("net: sock: add sock_set_mark") Reported-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information