Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181769
b: refs/heads/master
c: 84f3751
h: refs/heads/master
i:
  181767: 696a451
v: v3
  • Loading branch information
Baruch Siach authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent 4a66120 commit f13c573
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4f3ca2f152844c5f6ea853077f56d0db877d1f7a
refs/heads/master: 84f3751d6a6f766780dee509433bf7b3dfcdf465
3 changes: 2 additions & 1 deletion trunk/drivers/media/video/soc_mediabus.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ EXPORT_SYMBOL(soc_mbus_bytes_per_line);
const struct soc_mbus_pixelfmt *soc_mbus_get_fmtdesc(
enum v4l2_mbus_pixelcode code)
{
if ((unsigned int)(code - V4L2_MBUS_FMT_FIXED) > ARRAY_SIZE(mbus_fmt))
if (code - V4L2_MBUS_FMT_FIXED > ARRAY_SIZE(mbus_fmt) ||
code <= V4L2_MBUS_FMT_FIXED)
return NULL;
return mbus_fmt + code - V4L2_MBUS_FMT_FIXED - 1;
}
Expand Down

0 comments on commit f13c573

Please sign in to comment.