]> www.infradead.org Git - users/hch/misc.git/commit
Merge branch 'net-usb-asix-ax88772-fix-potential-string-cut'
authorJakub Kicinski <kuba@kernel.org>
Tue, 25 Mar 2025 21:35:33 +0000 (14:35 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Mar 2025 21:35:34 +0000 (14:35 -0700)
commita19f40d919ca6d16bbc03d858690f60f1a9bf3ed
tree7a4f6f5861ea19862846e77f45add5f18ed46623
parent4f74a45c6b1906574669999b9748feb1a92bee84
parent61997271a5a7dcd5a7dd5f0d81e4cb045e1db9ef
Merge branch 'net-usb-asix-ax88772-fix-potential-string-cut'

Andy Shevchenko says:

====================
net: usb: asix: ax88772: Fix potential string cut

The agreement and also PHY_MAX_ADDR limit suggest that the PHY address
can't occupy more than two hex digits. In some cases GCC complains about
potential string cut. In course of fixing this, introduce the PHY_ID_SIZE
predefined constant to make it easier for the users to know the bare
minimum for the buffer that holds PHY ID string (patch 1). With that,
fix the ASIX driver that triggers GCC accordingly (patch 2).
====================

Link: https://patch.msgid.link/20250324144751.1271761-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>