mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
greybus: camera: Fix size of configure_streams(0)
When APB-A CSI-Tx configuration fails, it is necessary to unconfigure the camera module issuesing a 0 stream configuration request. Fix size of request and response to avoid Greybus core complain about Response size differences. Testing Done: Triggering the error condition after APB-A CSI-tx configuration does not make Greybus core complain anymore Signed-off-by: Jacopo Mondi <jacopo.mondi@linaro.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@linaro.org> Signed-off-by: Alex Elder <elder@linaro.org>
This commit is contained in:
parent
36ab1108b6
commit
80b3982b8d
1 changed files with 2 additions and 1 deletions
|
@ -468,7 +468,8 @@ static int gb_camera_configure_streams(struct gb_camera *gcam,
|
|||
memset(req, 0, sizeof(*req));
|
||||
gb_operation_sync(gcam->connection,
|
||||
GB_CAMERA_TYPE_CONFIGURE_STREAMS,
|
||||
req, req_size, resp, resp_size);
|
||||
req, sizeof(*req),
|
||||
resp, sizeof(*resp));
|
||||
*flags = 0;
|
||||
*num_streams = 0;
|
||||
goto done;
|
||||
|
|
Loading…
Reference in a new issue