mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 13:06:59 +02:00
ionic: fix snprintf format length warning
[ Upstream commit0ceb3860a6] Our friendly kernel test robot has reminded us that with a new check we have a warning about a potential string truncation. In this case it really doesn't hurt anything, but it is worth addressing especially since there really is no reason to reserve so many bytes for our queue names. It seems that cutting the queue name buffer length in half stops the complaint. Fixes:c06107cabe("ionic: more ionic name tweaks") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202311300201.lO8v7mKU-lkp@intel.com/ Signed-off-by: Shannon Nelson <shannon.nelson@amd.com> Reviewed-by: Brett Creeley <brett.creeley@amd.com> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Link: https://lore.kernel.org/r/20231204192234.21017-2-shannon.nelson@amd.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
e4a2a4328c
commit
4dacbf99ce
|
|
@ -222,7 +222,7 @@ struct ionic_desc_info {
|
|||
void *cb_arg;
|
||||
};
|
||||
|
||||
#define IONIC_QUEUE_NAME_MAX_SZ 32
|
||||
#define IONIC_QUEUE_NAME_MAX_SZ 16
|
||||
|
||||
struct ionic_queue {
|
||||
struct device *dev;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user