--- zzzz-none-000/linux-3.10.107/drivers/media/pci/ttpci/av7110_hw.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/media/pci/ttpci/av7110_hw.c 2021-02-04 17:41:59.000000000 +0000 @@ -501,7 +501,7 @@ // dprintk(4, "%p\n", av7110); - if (2 + num > sizeof(buf)) { + if (2 + num > ARRAY_SIZE(buf)) { printk(KERN_WARNING "%s: %s len=%d is too big!\n", KBUILD_MODNAME, __func__, num);