OSDN Git Service

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>
Fri, 22 Nov 2019 13:43:51 +0000 (14:43 +0100)
commitfda878ce889c336b17eb5c222a63b149cb774538
treef1bdf64bb1e3725538ade47dbd2e3138bdc8827f
parent2f2fd87cd8847a4af42625df8c748f487413e169
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