From: Hans Verkuil Date: Wed, 1 Aug 2012 18:52:46 +0000 (-0300) Subject: [media] VIDIOC_ENUM_FREQ_BANDS fix X-Git-Tag: v3.6-rc3~9^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa4d9b53f0d71ff805bbd1e30fcba9d1827a7dd8;p=pandora-kernel.git [media] VIDIOC_ENUM_FREQ_BANDS fix When VIDIOC_ENUM_FREQ_BANDS is called for a driver that doesn't supply an enum_freq_bands op, then it will fall back to reporting a single freq band based on information from g_tuner or g_modulator. Due to a bug this is an infinite list since the index field wasn't tested. This patch fixes this and returns -EINVAL if index != 0. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed