aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/surface/surface_aggregator_cdev.c
diff options
context:
space:
mode:
authorShravan Kumar Ramani <[email protected]>2023-09-05 12:49:32 +0000
committerHans de Goede <[email protected]>2023-09-11 11:13:24 +0000
commit80ccd40568bcd3655b0fd0be1e9b3379fd6e1056 (patch)
tree1725ddf3550a16bd69c2d282663e912087f7f579 /drivers/platform/surface/surface_aggregator_cdev.c
parentplatform/mellanox: mlxbf-tmfifo: Drop jumbo frames (diff)
downloadkernel-80ccd40568bcd3655b0fd0be1e9b3379fd6e1056.tar.gz
kernel-80ccd40568bcd3655b0fd0be1e9b3379fd6e1056.zip
platform/mellanox: mlxbf-pmc: Fix potential buffer overflows
Replace sprintf with sysfs_emit where possible. Size check in mlxbf_pmc_event_list_show should account for "\0". Fixes: 1a218d312e65 ("platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver") Signed-off-by: Shravan Kumar Ramani <[email protected]> Reviewed-by: Vadim Pasternak <[email protected]> Reviewed-by: David Thompson <[email protected]> Link: https://lore.kernel.org/r/bef39ef32319a31b32f999065911f61b0d3b17c3.1693917738.git.shravankr@nvidia.com Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/surface/surface_aggregator_cdev.c')
0 files changed, 0 insertions, 0 deletions