diff options
author | Ratheesh Kannoth <rkannoth@marvell.com> | 2024-02-06 08:10:00 +0530 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-02-08 12:03:02 +0100 |
commit | db010ff6700f24f96e91ed56ca29cb69335008ef (patch) | |
tree | 8b7da4e69a3ef697813e4d5987dae293f341347b /drivers/s390/net | |
parent | 03fa49a386b298d357b90c9c5599f8d00dfc425c (diff) | |
download | lwn-db010ff6700f24f96e91ed56ca29cb69335008ef.tar.gz lwn-db010ff6700f24f96e91ed56ca29cb69335008ef.zip |
octeontx2-af: Initialize maps.
kmalloc_array() without __GFP_ZERO flag does not initialize
memory to zero. This causes issues. Use kcalloc() for maps and
bitmap_zalloc() for bitmaps.
Fixes: dd7842878633 ("octeontx2-af: Add new devlink param to configure maximum usable NIX block LFs")
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
Reviewed-by: Brett Creeley <bcreeley@amd.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240206024000.1070260-1-rkannoth@marvell.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/s390/net')
0 files changed, 0 insertions, 0 deletions