]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ah6: fix error return code in ah6_input()
authorZhang Changzhong <zhangchangzhong@huawei.com>
Tue, 17 Nov 2020 02:45:05 +0000 (10:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Nov 2020 12:28:55 +0000 (13:28 +0100)
commitb2f95ff764c01fb0934d3f067de342f304db9377
tree648eb250b44a6e8a14718204df2b2b9dd2e7fbd1
parentfc8334619167ce90b6d3f76e3dce9284dbe14fa2
ah6: fix error return code in ah6_input()

[ Upstream commit a5ebcbdf34b65fcc07f38eaf2d60563b42619a59 ]

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

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Link: https://lore.kernel.org/r/1605581105-35295-1-git-send-email-zhangchangzhong@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/ah6.c