Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff89de6b authored by Julia Lawall's avatar Julia Lawall Committed by Dmitry Torokhov
Browse files

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 9c8f5579
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}