[patch] [media] dvb-core: check -msg_len for diseqc_send_master_cmd()

2014-04-01 Thread Dan Carpenter
I'd like to send this patch except that it breaks cx24116_send_diseqc_msg(). The cx24116 driver accepts -msg_len values up to 24 but it looks like it's just copying 16 bytes past the end of the -msg[] array so it's already broken. cmd-msg_len is an unsigned char. The comment next to the struct

Re: [patch] [media] dvb-core: check -msg_len for diseqc_send_master_cmd()

2014-04-01 Thread Dan Carpenter
Oops. I send this to Mauro's old email address. Sorry about that. regards, dan carpenter On Tue, Apr 01, 2014 at 05:38:07PM +0300, Dan Carpenter wrote: I'd like to send this patch except that it breaks cx24116_send_diseqc_msg(). The cx24116 driver accepts -msg_len values up to 24 but it