]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/iucv: fix the allocation size of iucv_path_table array
authorAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 14 Feb 2024 16:32:40 +0000 (17:32 +0100)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:12 +0000 (18:19 -0400)
commit61698b987b6d649dfba2f27b1c5a78abbbb28977
treeacd1702a8734f0ae6d09b1b7b232953f1b91032a
parent57f78c46f08198e1be08ffe99c4c1ccc12855bf5
net/iucv: fix the allocation size of iucv_path_table array

[ Upstream commit b4ea9b6a18ebf7f9f3a7a60f82e925186978cfcf ]

iucv_path_table is a dynamically allocated array of pointers to
struct iucv_path items. Yet, its size is calculated as if it was
an array of struct iucv_path items.

Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Alexandra Winter <wintera@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/iucv/iucv.c