[PATCH v2 0/2] EDAC/ i5000, i5400: fix snprintf limit

Dan Carpenter posted 2 patches 1 month, 4 weeks ago
drivers/edac/i5000_edac.c | 1 +
drivers/edac/i5400_edac.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
[PATCH v2 0/2] EDAC/ i5000, i5400: fix snprintf limit
Posted by Dan Carpenter 1 month, 4 weeks ago
These fixes don't affect runtime since the buffer is large enough but
the size limits used for snprintf() limits aren't caculated correct.

Changes since v1:
* Fix i5000 as well.
* Fix the subject
* Delete some related dead code

Dan Carpenter (2):
  EDAC/i5000: Fix snprintf() size calculation in calculate_dimm_size()
  EDAC/i5400: Fix snprintf() limit calculation in calculate_dimm_size()

 drivers/edac/i5000_edac.c | 1 +
 drivers/edac/i5400_edac.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

-- 
2.51.0
Re: [PATCH v2 0/2] EDAC/ i5000, i5400: fix snprintf limit
Posted by Luck, Tony 1 month, 2 weeks ago
On Tue, Dec 09, 2025 at 05:36:53PM +0300, Dan Carpenter wrote:
> 
> These fixes don't affect runtime since the buffer is large enough but
> the size limits used for snprintf() limits aren't caculated correct.
> 
> Changes since v1:
> * Fix i5000 as well.
> * Fix the subject
> * Delete some related dead code
> 
> Dan Carpenter (2):
>   EDAC/i5000: Fix snprintf() size calculation in calculate_dimm_size()
>   EDAC/i5400: Fix snprintf() limit calculation in calculate_dimm_size()
> 
>  drivers/edac/i5000_edac.c | 1 +
>  drivers/edac/i5400_edac.c | 2 +-
>  2 files changed, 2 insertions(+), 1 deletion(-)

Applied. Thanks.

-Tony