Message ID | 20241021103839.2828469-1-arnd@kernel.org |
---|---|
State | New |
Headers | show |
Series | Input: serio_raw - initialize serio_raw_write() the return code | expand |
diff --git a/drivers/input/serio/serio_raw.c b/drivers/input/serio/serio_raw.c index e058fef07f57..55fe77d04089 100644 --- a/drivers/input/serio/serio_raw.c +++ b/drivers/input/serio/serio_raw.c @@ -195,6 +195,7 @@ static ssize_t serio_raw_write(struct file *file, const char __user *buffer, if (count > 32) count = 32; + written = 0; while (count--) { if (get_user(c, buffer++)) return -EFAULT;