summaryrefslogtreecommitdiff
path: root/drivers/media/tuners/tda18218.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2013-11-02 12:51:59 +0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-11-08 15:45:41 +0400
commit5bf30b3bc4ff80ef71a733a1f459cca4fa507892 (patch)
treeb6579a6ee87ca9fccbe72b8265847942e70d1ffa /drivers/media/tuners/tda18218.c
parentf7a35df15b1f7de7823946aebc9164854e66ea07 (diff)
downloadlinux-5bf30b3bc4ff80ef71a733a1f459cca4fa507892.tar.xz
[media] av7110_hw: Don't use dynamic static allocation
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>
Diffstat (limited to 'drivers/media/tuners/tda18218.c')
0 files changed, 0 insertions, 0 deletions