[media] ivtvfb: Add sanity check to ivtvfb_pan_display()
authorIan Armstrong <ian@iarmst.demon.co.uk>
Sun, 29 May 2011 01:15:41 +0000 (22:15 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 1 Jun 2011 11:45:36 +0000 (08:45 -0300)
commit6600cc301d0762e3db8bd2b44d2d5fef36a4fd68
tree4f68a7ca392e1df8999fec0ef5033008a2e35fe6
parent5d9c08dea0c13c09408f97fe61d34c198c4f3277
[media] ivtvfb: Add sanity check to ivtvfb_pan_display()

Add sanity check to ivtvfb_pan_display() to ensure only valid values are used
to pan the display. Invalid values are rejected with -EINVAL

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/ivtv/ivtvfb.c