Skip to contentSkip to conversation

v4l2: sn9c102 incorrectly blocks FMT_SN9C10X

PATCH New Alan Cox 1 participant 1 message Oct 25, 2012 Media (V4L/DVB)

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 v4l2: sn9c102 incorrectly blocks FMT_SN9C10X

From: Alan Cox <[email protected]>

Missing break

---

 drivers/media/usb/sn9c102/sn9c102_core.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/media/usb/sn9c102/sn9c102_core.c +2 -0
index 5bfc8e2..7360586 100644
@@ -2481,11 +2481,13 @@ sn9c102_vidioc_enum_framesizes(struct sn9c102_device* cam, void __user * arg)
 		if (frmsize.pixel_format != V4L2_PIX_FMT_SN9C10X &&
 		    frmsize.pixel_format != V4L2_PIX_FMT_SBGGR8)
 			return -EINVAL;
+		break;
 	case BRIDGE_SN9C105:
 	case BRIDGE_SN9C120:
 		if (frmsize.pixel_format != V4L2_PIX_FMT_JPEG &&
 		    frmsize.pixel_format != V4L2_PIX_FMT_SBGGR8)
 			return -EINVAL;
+		break;
 	}
 
 	frmsize.type = V4L2_FRMSIZE_TYPE_STEPWISE;