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.
738 if (!data) {
739 info("FRM Could not start Firmware Download"\
740 "(Buffer allocation failed)");
741 return -ENOMEM;
742 }
743
[snip]
768
769 usb_control_msg(d->udev, usb_rcvctrlpipe(d->udev, 0),
770 0x06, 0x80, 0x0200, 0x00, data, 0x0109, 1000);
^^^^^^
Smatch expects this parameter to equal to sizeof(data) or smaller
instead of 265.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html