diff mbox

[5/12] drivers/media/video/uvc: Correct size given to memset

Message ID Pine.LNX.4.64.0912092023310.1870@ask.diku.dk (mailing list archive)
State Accepted
Delegated to: Douglas Landgraf
Headers show

Commit Message

Julia Lawall Dec. 9, 2009, 7:23 p.m. UTC
None
diff mbox

Patch

diff -u -p a/drivers/media/video/uvc/uvc_video.c b/drivers/media/video/uvc/uvc_video.c
--- a/drivers/media/video/uvc/uvc_video.c
+++ b/drivers/media/video/uvc/uvc_video.c
@@ -145,7 +145,7 @@  static int uvc_get_video_ctrl(struct uvc
 		uvc_warn_once(stream->dev, UVC_WARN_MINMAX, "UVC non "
 			"compliance - GET_MIN/MAX(PROBE) incorrectly "
 			"supported. Enabling workaround.\n");
-		memset(ctrl, 0, sizeof ctrl);
+		memset(ctrl, 0, sizeof *ctrl);
 		ctrl->wCompQuality = le16_to_cpup((__le16 *)data);
 		ret = 0;
 		goto out;