The patch number 9183 was added via Steven Toth <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

From: Steven Toth  <[EMAIL PROTECTED]>
S2API: Return error of the caller provides 0 commands.


S2API: Return error of the caller provides 0 commands.

Priority: normal

Signed-off-by: Steven Toth <[EMAIL PROTECTED]>


---

 linux/drivers/media/dvb/dvb-core/dvb_frontend.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -r cf98e52d60b5 -r 4abf15af7eae 
linux/drivers/media/dvb/dvb-core/dvb_frontend.c
--- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c   Mon Oct 06 21:01:47 
2008 -0400
+++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c   Mon Oct 06 21:46:08 
2008 -0400
@@ -1459,7 +1459,7 @@ static int dvb_frontend_ioctl_properties
 
                /* Put an arbitrary limit on the number of messages that can
                 * be sent at once */
-               if (tvps->num > DTV_IOCTL_MAX_MSGS)
+               if ((tvps->num == 0) || (tvps->num > DTV_IOCTL_MAX_MSGS))
                        return -EINVAL;
 
                tvp = (struct dtv_property *) kmalloc(tvps->num *
@@ -1494,7 +1494,7 @@ static int dvb_frontend_ioctl_properties
 
                /* Put an arbitrary limit on the number of messages that can
                 * be sent at once */
-               if (tvps->num > DTV_IOCTL_MAX_MSGS)
+               if ((tvps->num == 0) || (tvps->num > DTV_IOCTL_MAX_MSGS))
                        return -EINVAL;
 
                tvp = (struct dtv_property *) kmalloc(tvps->num *


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/4abf15af7eaee6f06de24404605db884a3cf3794

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to