misc: genwqe: should return proper error value.
authorzhong jiang <zhongjiang@huawei.com>
Thu, 20 Sep 2018 02:29:13 +0000 (10:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 17:00:40 +0000 (18:00 +0100)
commit4cb9af0d93bd98fde55492885458f58fcf370b28
tree4d3903816557f393ddbe27c01dec0be5a95e8bfa
parent0038e0fca9dc59569be43db00db659d6066831cc
misc: genwqe: should return proper error value.

[ Upstream commit 02241995b004faa7d9ff628e97f24056190853f8 ]

The function should return -EFAULT when copy_from_user fails. Even
though the caller does not distinguish them. but we should keep backward
compatibility.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/genwqe/card_utils.c