diff --git a/kernel/realsense/d4xx.c b/kernel/realsense/d4xx.c index ca7e85f..1a50166 100644 --- a/kernel/realsense/d4xx.c +++ b/kernel/realsense/d4xx.c @@ -2534,8 +2534,10 @@ static int ds5_g_volatile_ctrl(struct v4l2_ctrl *ctrl) u16 dataLen = 0; u16 bufLen = ctrl->dims[0]; ret = ds5_get_hwmc(state, data, bufLen, &dataLen); - if (ret) + if (ret) { + ret = 0; // LRS doesn't expect to get errors with HWMC break; + } /* This is needed for librealsense, to align there code with UVC, * last word is length - 4 bytes header length */ dataLen -= 4; @@ -5637,4 +5639,4 @@ MODULE_AUTHOR("Guennadi Liakhovetski ,\n\ Shikun Ding "); MODULE_AUTHOR("Dmitry Perchanov "); MODULE_LICENSE("GPL v2"); -MODULE_VERSION("1.0.1.20"); +MODULE_VERSION("1.0.1.21");