summaryrefslogtreecommitdiff
path: root/net/tipc/crypto.h
diff options
context:
space:
mode:
authorLin Ma <linma@zju.edu.cn>2023-06-14 20:06:04 +0800
committerJakub Kicinski <kuba@kernel.org>2023-06-15 14:59:17 -0700
commit44194cb1b6045dea33ae9a0d54fb7e7cd93a2e09 (patch)
treee39c62001a59730c923435c40a01c8035c0f105e /net/tipc/crypto.h
parente84a1e1e683f3558e30f437d7c99df35afb8b52c (diff)
net: tipc: resize nlattr array to correct size
According to nla_parse_nested_deprecated(), the tb[] is supposed to the destination array with maxtype+1 elements. In current tipc_nl_media_get() and __tipc_nl_media_set(), a larger array is used which is unnecessary. This patch resize them to a proper size. Fixes: 1e55417d8fc6 ("tipc: add media set to new netlink api") Fixes: 46f15c6794fb ("tipc: add media get/dump to new netlink api") Signed-off-by: Lin Ma <linma@zju.edu.cn> Reviewed-by: Florian Westphal <fw@strlen.de> Reviewed-by: Tung Nguyen <tung.q.nguyen@dektech.com.au> Link: https://lore.kernel.org/r/20230614120604.1196377-1-linma@zju.edu.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/tipc/crypto.h')
0 files changed, 0 insertions, 0 deletions