Loading
RNP: NET: Fix "'snprintf' output between 10 and 37 bytes into a
destination of size 24" wanrings mucse inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9F4IW CVE: NA -------------------------------- LKP reports below warning when building for loongarch64 with "W=1 build" ...skipping... drivers/net/ethernet/mucse/rnp/rnp_main.c:2401:25: note: 'snprintf' output between 10 and 37 bytes into a destination of size 24 2401 | snprintf(q_vector->name, | ^~~~~~~~~~~~~~~~~~~~~~~~ 2402 | sizeof(q_vector->name) - 1, "%s-%s-%d-%d", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2403 | netdev->name, "TxRx", i, q_vector->v_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reported-by:kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202403080412.gcDr9v5Q-lkp@intel.com/ Signed-off-by:
Dong Yibo <dong100@mucse.com>