Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Input: serio_raw - fix uninitialized variable bug
Recent conversion of the driver to use guard notation for locks and other resources introduced a bug: "written" variable that is supposed to hold number of bytes successfully written was not initialized. Fix it by initializing the variable with 0. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 5b53a9d ("Input: serio_raw - use guard notation for locks and other resources") Signed-off-by: Dmitry Torokhov <[email protected]>
- Loading branch information