Message ID | 20210326025345.456475-2-saeed@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 6def6e47e24f53a9b1f1666fd36c37088c066cec |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next,V2,01/13] net/mlx5e: alloc the correct size for indirection_rqt | expand |
Context | Check | Description |
---|---|---|
netdev/cover_letter | success | Pull request |
netdev/fixes_present | success | Link |
netdev/patch_count | success | Link |
netdev/tree_selection | success | Clearly marked for net-next |
netdev/subject_prefix | success | Link |
netdev/cc_maintainers | fail | 1 blamed authors not CCed: tariqt@nvidia.com; 3 maintainers not CCed: tariqt@nvidia.com linux-rdma@vger.kernel.org leon@kernel.org |
netdev/source_inline | success | Was 0 now: 0 |
netdev/verify_signedoff | success | Link |
netdev/module_param | success | Was 0 now: 0 |
netdev/build_32bit | success | Errors and warnings before: 0 this patch: 0 |
netdev/kdoc | success | Errors and warnings before: 0 this patch: 0 |
netdev/verify_fixes | success | Link |
netdev/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 13 lines checked |
netdev/build_allmodconfig_warn | success | Errors and warnings before: 0 this patch: 0 |
netdev/header_inline | success | Link |
On Fri, Mar 26, 2021 at 3:53 AM Saeed Mahameed <saeed@kernel.org> wrote: > > From: Saeed Mahameed <saeedm@nvidia.com> > > The cited patch allocated the wrong size for the indirection_rqt table, > fix that. > > Fixes: 2119bda642c4 ("net/mlx5e: allocate 'indirection_rqt' buffer dynamically") > CC: Arnd Bergmann <arnd@arndb.de> > Signed-off-by: Saeed Mahameed <saeedm@nvidia.com> Thanks for fixing my mistake Acked-by: Arnd Bergmann <arnd@arndb.dew>
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Thu, 25 Mar 2021 19:53:33 -0700 you wrote: > From: Saeed Mahameed <saeedm@nvidia.com> > > The cited patch allocated the wrong size for the indirection_rqt table, > fix that. > > Fixes: 2119bda642c4 ("net/mlx5e: allocate 'indirection_rqt' buffer dynamically") > CC: Arnd Bergmann <arnd@arndb.de> > Signed-off-by: Saeed Mahameed <saeedm@nvidia.com> > > [...] Here is the summary with links: - [net-next,V2,01/13] net/mlx5e: alloc the correct size for indirection_rqt https://git.kernel.org/netdev/net-next/c/6def6e47e24f - [net-next,V2,02/13] net/mlx5e: Pass q_counter indentifier as parameter to rq_param builders https://git.kernel.org/netdev/net-next/c/6debae2a9d11 - [net-next,V2,03/13] net/mlx5e: Move params logic into its dedicated file https://git.kernel.org/netdev/net-next/c/b3a131c2a160 - [net-next,V2,04/13] net/mlx5e: Restrict usage of mlx5e_priv in params logic functions https://git.kernel.org/netdev/net-next/c/895649201845 - [net-next,V2,05/13] net/mlx5e: Allow creating mpwqe info without channel https://git.kernel.org/netdev/net-next/c/ea886000a8ac - [net-next,V2,06/13] net/mlx5: Add helper to set time-stamp translator on a queue https://git.kernel.org/netdev/net-next/c/183532b77ddc - [net-next,V2,07/13] net/mlx5e: Generalize open RQ https://git.kernel.org/netdev/net-next/c/869c5f926247 - [net-next,V2,08/13] net/mlx5e: Generalize RQ activation https://git.kernel.org/netdev/net-next/c/a8dd7ac12fc3 - [net-next,V2,09/13] net/mlx5e: Generalize close RQ https://git.kernel.org/netdev/net-next/c/e078e8df4224 - [net-next,V2,10/13] net/mlx5e: Generalize direct-TIRs and direct-RQTs API https://git.kernel.org/netdev/net-next/c/42212d997155 - [net-next,V2,11/13] net/mlx5e: Generalize PTP implementation https://git.kernel.org/netdev/net-next/c/b0d35de441ab - [net-next,V2,12/13] net/mlx5e: Cleanup PTP https://git.kernel.org/netdev/net-next/c/e569cbd72924 - [net-next,V2,13/13] net/mlx5: Fix spelling mistakes in mlx5_core_info message https://git.kernel.org/netdev/net-next/c/31a91220a27d You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c index 4bd882a1018c..dbc06c71c170 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c @@ -447,11 +447,11 @@ static void mlx5e_hairpin_destroy_transport(struct mlx5e_hairpin *hp) static int mlx5e_hairpin_fill_rqt_rqns(struct mlx5e_hairpin *hp, void *rqtc) { - u32 *indirection_rqt, rqn; struct mlx5e_priv *priv = hp->func_priv; int i, ix, sz = MLX5E_INDIR_RQT_SIZE; + u32 *indirection_rqt, rqn; - indirection_rqt = kzalloc(sz, GFP_KERNEL); + indirection_rqt = kcalloc(sz, sizeof(*indirection_rqt), GFP_KERNEL); if (!indirection_rqt) return -ENOMEM;