Skip to content

Commit

Permalink
Input: sur40 - fix error return code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Julia Lawall authored and Dmitry Torokhov committed Aug 24, 2015
1 parent 9c8f557 commit ff89de6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/touchscreen/sur40.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ff89de6

Please sign in to comment.