[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <SJ0PR11MB5008005633166EDB1BBE59B8D7D39@SJ0PR11MB5008.namprd11.prod.outlook.com>
Date: Fri, 20 May 2022 18:13:40 +0000
From: "Kumar, M Chetan" <m.chetan.kumar@...el.com>
To: Jakub Kicinski <kuba@...nel.org>,
"davem@...emloft.net" <davem@...emloft.net>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"edumazet@...gle.com" <edumazet@...gle.com>,
"pabeni@...hat.com" <pabeni@...hat.com>,
linuxwwan <linuxwwan@...el.com>,
"loic.poulain@...aro.org" <loic.poulain@...aro.org>,
"ryazanov.s.a@...il.com" <ryazanov.s.a@...il.com>,
"johannes@...solutions.net" <johannes@...solutions.net>
Subject: RE: [PATCH net-next] wwan: iosm: use a flexible array rather than
allocate short objects
> -----Original Message-----
> From: Jakub Kicinski <kuba@...nel.org>
> Sent: Friday, May 20, 2022 11:30 AM
> To: davem@...emloft.net
> Cc: netdev@...r.kernel.org; edumazet@...gle.com; pabeni@...hat.com;
> Jakub Kicinski <kuba@...nel.org>; Kumar, M Chetan
> <m.chetan.kumar@...el.com>; linuxwwan <linuxwwan@...el.com>;
> loic.poulain@...aro.org; ryazanov.s.a@...il.com;
> johannes@...solutions.net
> Subject: [PATCH net-next] wwan: iosm: use a flexible array rather than
> allocate short objects
>
> GCC array-bounds warns that ipc_coredump_get_list() under-allocates the
> size of struct iosm_cd_table *cd_table.
>
> This is avoidable - we just need a flexible array. Nothing calls
> sizeof() on struct iosm_cd_list or anything that contains it.
>
> Signed-off-by: Jakub Kicinski <kuba@...nel.org>
Reviewed-by: M Chetan Kumar <m.chetan.kumar@...el.com>
Powered by blists - more mailing lists