]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PNP: Expand length of fixup id string
authorKees Cook <kees@kernel.org>
Mon, 10 Mar 2025 22:24:33 +0000 (15:24 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 12 Mar 2025 19:41:14 +0000 (20:41 +0100)
commit425b1c97b07f2290700f708edabef32861e2b2db
treea1b562d4c1214e1bfa7108b1fa8b91537b6fad71
parent270247a209a91ba5248341bad7264357a9870c8d
PNP: Expand length of fixup id string

GCC 15's -Wunterminated-string-initialization saw that "id" was not
including the required trailing NUL character. Instead of marking "id"
with __nonstring[1], expand the length of the string as it is used in
(debugging) format strings that expect a properly formed C string.

Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117178
Signed-off-by: Kees Cook <kees@kernel.org>
Link: https://patch.msgid.link/20250310222432.work.826-kees@kernel.org
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/pnp.h