]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: fix error return code in validate_and_copy_dec_ttl()
authorWang Hai <wanghai38@huawei.com>
Fri, 4 Dec 2020 11:43:14 +0000 (19:43 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Dec 2020 23:43:14 +0000 (15:43 -0800)
commitfb2152d8a41e3ba000782b26b69182e2ea5827a6
tree7d1dfc8bee8966ac6b34cc203e0d85ad4e053c07
parenta161f6bec1b3cad7654c0bdc201171c527c9e8b6
openvswitch: fix error return code in validate_and_copy_dec_ttl()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Changing 'return start' to 'return action_start' can fix this bug.

Fixes: 4af693f8a909 ("net: openvswitch: fix TTL decrement action netlink message format")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Reviewed-by: Eelco Chaudron <echaudro@redhat.com>
Link: https://lore.kernel.org/r/20201204114314.1596-1-wanghai38@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/openvswitch/flow_netlink.c