diff mbox series

Input: fsia6b: Increase size of phys to hold full name

Message ID 20250329172237.61874-1-markus@notsyncing.net (mailing list archive)
State New
Headers show
Series Input: fsia6b: Increase size of phys to hold full name | expand

Commit Message

Markus Koch March 29, 2025, 5:22 p.m. UTC
The driver appends "/input0" to the phys name of the serio device.
This commit ensures that there is enough space in the variable to
do so.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202501020303.1WtxWWTu-lkp@intel.com/
Signed-off-by: Markus Koch <markus@notsyncing.net>
---
 drivers/input/joystick/fsia6b.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/input/joystick/fsia6b.c b/drivers/input/joystick/fsia6b.c
index 76ffdec5c183..ef1a7a3a867c 100644
--- a/drivers/input/joystick/fsia6b.c
+++ b/drivers/input/joystick/fsia6b.c
@@ -56,7 +56,7 @@  struct fsia6b {
 	struct input_dev *dev;
 	struct ibus_packet packet;
 
-	char phys[32];
+	char phys[sizeof_field(struct serio, phys)+7];
 };
 
 static irqreturn_t fsia6b_serio_irq(struct serio *serio,