diff options
| author | Dan Carpenter <[email protected]> | 2020-12-02 06:43:49 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-12-28 14:14:53 +0000 |
| commit | cab36da4bf1a35739b091b73714a39a1bbd02b05 (patch) | |
| tree | 8e33136726e900c8bfb12faebae8193e9b075dc7 /drivers/pci/controller/pci-host-common.c | |
| parent | staging: spmi: hisi-spmi-controller: Fix some error handling paths (diff) | |
| download | kernel-cab36da4bf1a35739b091b73714a39a1bbd02b05.tar.gz kernel-cab36da4bf1a35739b091b73714a39a1bbd02b05.zip | |
Staging: comedi: Return -EFAULT if copy_to_user() fails
Return -EFAULT on error instead of the number of bytes remaining to be
copied.
Fixes: bac42fb21259 ("comedi: get rid of compat_alloc_user_space() mess in COMEDI_CMD{,TEST} compat")
Signed-off-by: Dan Carpenter <[email protected]>
Cc: stable <[email protected]>
Link: https://lore.kernel.org/r/X8c3pfwFy2jpy4BP@mwanda
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-common.c')
0 files changed, 0 insertions, 0 deletions
