]> git.baikalelectronics.ru Git - kernel.git/commit
applicom: fix some err codes returned by ac_ioctl
authorXu Jia <xujia39@huawei.com>
Wed, 24 Mar 2021 07:20:31 +0000 (15:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Mar 2021 12:50:49 +0000 (14:50 +0200)
commit0c8368914f1867e061164a64f826165140f8c8be
tree2cf53daadf728c0cb08bd454f4f8177fd90fae97
parent7894c01a7e8a2431e8e5cc8f9eec1248ae76fead
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 <arnd@arndb.de>
Signed-off-by: Xu Jia <xujia39@huawei.com>
Link: https://lore.kernel.org/r/20210324072031.941791-1-xujia39@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/applicom.c