Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [media] av7110_hw: fix a sanity check in av7110_fw_cmd() | Dan Carpenter | 2014-03-11 | 1 | -1/+1 |
| | | | | | | | | | ARRAY_SIZE(buf) (8 elements) was intended instead of sizeof(buf) (16 bytes). But this is just a sanity check and the callers always pass valid values so this doesn't cause a problem. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com> | ||||
* | [media] av7110_hw: Don't use dynamic static allocation | Mauro Carvalho Chehab | 2013-11-08 | 1 | -2/+17 |
| | | | | | | | | | | | | | | | Dynamic static allocation is evil, as Kernel stack is too low, and compilation complains about it on some archs: drivers/media/pci/ttpci/av7110_hw.c:510:1: warning: 'av7110_fw_cmd' uses dynamic stack allocation [enabled by default] Instead, let's enforce a limit for the buffer. In the specific case of this driver, the maximum fw command size is 6 + 2, as checked using: $ git grep -A1 av7110_fw_cmd drivers/media/pci/ttpci/ So, use 8 for the buffer size. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com> | ||||
* | [media] Rename media/dvb as media/pci | Mauro Carvalho Chehab | 2012-08-13 | 1 | -0/+1208 |
The remaining dvb drivers are pci, so rename them to match the bus. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> |