diff options
author | Dawei Li <[email protected]> | 2024-03-04 18:16:53 +0800 |
---|---|---|
committer | Conor Dooley <[email protected]> | 2024-03-04 19:18:16 +0000 |
commit | af1e0a7d39f98c0dea1b186a76fcee7da6a5f7bc (patch) | |
tree | d0f045c7cfd2bc3c3cf4d5189a15298ad7366917 /drivers/net/ethernet/intel/igc/igc_main.c | |
parent | 6613476e225e090cc9aad49be7fa504e290dd33d (diff) |
firmware: microchip: Fix over-requested allocation size
cocci warnings: (new ones prefixed by >>)
>> drivers/firmware/microchip/mpfs-auto-update.c:387:72-78:
ERROR: application of sizeof to pointer
drivers/firmware/microchip/mpfs-auto-update.c:170:72-78:
ERROR: application of sizeof to pointer
response_msg is a pointer to u32, so the size of element it points to is
supposed to be a multiple of sizeof(u32), rather than sizeof(u32 *).
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Dawei Li <[email protected]>
Fixes: ec5b0f1193ad ("firmware: microchip: add PolarFire SoC Auto Update support")
Signed-off-by: Conor Dooley <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions