[media] lmedm04: fix data usage past the end of the buffer
authorMalcolm Priestley <tvboxspy@gmail.com>
Mon, 13 Aug 2012 17:42:17 +0000 (14:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 13 Aug 2012 22:53:29 +0000 (19:53 -0300)
commit0a67fe458471cc13adeb0e10694e10674bf383eb
tree3fb4dfdcbb016d0be5245f34293c97ba387083e0
parentae53020527796a123e61698160b3cf193ce8cf48
[media] lmedm04: fix data usage past the end of the buffer

On Mon, 2012-08-13 at 19:58 +0300, Dan Carpenter wrote:
> Hello Mauro Carvalho Chehab,
>
> The patch db6651a9ebb3: "[media] lmedm04: fix build" from Aug 12,
> 2012, leads to the following warning:
> drivers/media/dvb/dvb-usb-v2/lmedm04.c:769 lme2510_download_firmware()
>   error: usb_control_msg() 'data' too small (128 vs 265)
>
>    737          data = kzalloc(128, GFP_KERNEL);
>                                ^^^
> data is 128 bytes.

Control isn't used, so remove it.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb-v2/lmedm04.c