diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-08-24 20:51:04 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-08-24 20:55:24 +0300 |
commit | ff89de6ba1d41ad4dea2c59531c5b4038ae43e8c (patch) | |
tree | 2e41b4d125246ffd5073fba0dcdd2a1d38ae00c4 /drivers/input/touchscreen/sur40.c | |
parent | 9c8f55798a9d716daed4de6d7038a21c3ca6e673 (diff) | |
download | linux-ff89de6ba1d41ad4dea2c59531c5b4038ae43e8c.tar.xz |
Input: sur40 - fix error return code
Propagate error code on failure, or upper layers will be confused by
returned 0 (success) code.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/sur40.c')
-rw-r--r-- | drivers/input/touchscreen/sur40.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/sur40.c b/drivers/input/touchscreen/sur40.c index 8be7b9b79f20..3f117637e832 100644 --- a/drivers/input/touchscreen/sur40.c +++ b/drivers/input/touchscreen/sur40.c @@ -581,6 +581,7 @@ static int sur40_probe(struct usb_interface *interface, sur40->alloc_ctx = vb2_dma_sg_init_ctx(sur40->dev); if (IS_ERR(sur40->alloc_ctx)) { dev_err(sur40->dev, "Can't allocate buffer context"); + error = PTR_ERR(sur40->alloc_ctx); goto err_unreg_v4l2; } |