mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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 [1] 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>
This commit is contained in:
committed by
Rafael J. Wysocki
parent
270247a209
commit
425b1c97b0
@@ -290,7 +290,7 @@ static inline void pnp_set_drvdata(struct pnp_dev *pdev, void *data)
|
||||
}
|
||||
|
||||
struct pnp_fixup {
|
||||
char id[7];
|
||||
char id[8];
|
||||
void (*quirk_function) (struct pnp_dev *dev); /* fixup function */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user