From: Mauro Carvalho Chehab Date: Wed, 29 Apr 2015 12:33:02 +0000 (-0300) Subject: [media] qt1010: avoid going past array X-Git-Tag: omap-for-v4.2/fixes-rc1^2~111^2~504 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4682b58e5af01ee856a706083eac71238fb69cd0;p=pandora-kernel.git [media] qt1010: avoid going past array As reported by smatch: drivers/media/tuners/qt1010.c:357 qt1010_init() error: buffer overflow 'i2c_data' 34 <= 34 This should not happen with the current code, as the i2c_data array doesn't end with a QT1010_M1, but it doesn't hurt add a BUG_ON to notify if one modifies it and breaks. Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed