diff options
| author | Marcelo Diop-Gonzalez <[email protected]> | 2019-11-20 20:21:02 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-11-22 10:40:31 +0000 |
| commit | 0f6f8749872e7be6c083dc845bf4d45a7018b79c (patch) | |
| tree | 28cbd024ac053389c9d674cb58de1e28ecfcd9a9 /drivers/net/xen-netback/interface.c | |
| parent | staging: vchiq: Refactor indentation in vchiq_dump_* functions (diff) | |
| download | kernel-0f6f8749872e7be6c083dc845bf4d45a7018b79c.tar.gz kernel-0f6f8749872e7be6c083dc845bf4d45a7018b79c.zip | |
staging: vchiq: Have vchiq_dump_* functions return an error code
These functions currently modify the struct dump_context passed
to them, and set context->actual to -EFAULT in case of error.
The issue is that this is never returned to the user (except
accidentally when things align so that that happens). So, have
these functions return 0 on success and the appropriate error
code otherwise, and return nonzero errors to the user.
Reviewed-by: Dan Carpenter <[email protected]>
Signed-off-by: Marcelo Diop-Gonzalez <[email protected]>
Reviewed-by: Nicolas Saenz Julienne <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions
