net/x25: fix called/calling length calculation in x25_parse_address_block
authorMartin Schiller <ms@dev.tdt.de>
Tue, 27 Nov 2018 08:50:27 +0000 (09:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Dec 2019 09:41:14 +0000 (10:41 +0100)
commitad4c756c9d999ac63567cec9f6bd7283d2dca159
tree25af8e78c5cc94801698bc9c47f54adb98156cfb
parent3c7ce3cc420ac34781ecd2f1e3346400128d9912
net/x25: fix called/calling length calculation in x25_parse_address_block

[ Upstream commit d449ba3d581ed29f751a59792fdc775572c66904 ]

The length of the called and calling address was not calculated
correctly (BCD encoding).

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/x25/af_x25.c