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>
Tue, 25 Sep 2018 18:21:02 +0000 (20:21 +0200)
commit02241995b004faa7d9ff628e97f24056190853f8
tree7a5a46cce1d2a7f4a1ae5ae4c9185bff372bb570
parent6dbfdc1a4ee0030563af22bb682ff3bc590422f9
misc: genwqe: should return proper error value.

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>
drivers/misc/genwqe/card_utils.c