]> Git Repo - linux.git/commit - drivers/char/applicom.c
applicom: fix some err codes returned by ac_ioctl
authorXu Jia <[email protected]>
Wed, 24 Mar 2021 07:20:31 +0000 (15:20 +0800)
committerGreg Kroah-Hartman <[email protected]>
Sun, 28 Mar 2021 12:50:49 +0000 (14:50 +0200)
commit6880149e5a78962a055720981d37e5069f296ef7
tree2cf53daadf728c0cb08bd454f4f8177fd90fae97
parent40635128fee8c762b4b3e8ab805a15f01d60b859
applicom: fix some err codes returned by ac_ioctl

When cmd > 6 or copy_to_user() fail, The variable 'ret' would not be
returned back. Fix the 'ret' set but not used.

Reviewed-by: Arnd Bergmann <[email protected]>
Signed-off-by: Xu Jia <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/char/applicom.c
This page took 0.053345 seconds and 4 git commands to generate.