[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230614124953.GA15559@breakpoint.cc>
Date: Wed, 14 Jun 2023 14:49:53 +0200
From: Florian Westphal <fw@...len.de>
To: Lin Ma <linma@....edu.cn>
Cc: davem@...emloft.net, netdev@...r.kernel.org,
tipc-discussion@...ts.sourceforge.net, tung.q.nguyen@...tech.com.au
Subject: Re: [PATCH v2] net: tipc: resize nlattr array to correct size
Lin Ma <linma@....edu.cn> wrote:
> 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.
Reviewed-by: Florian Westphal <fw@...len.de>
Powered by blists - more mailing lists