From: Janne Grunau Date: Tue, 1 Sep 2009 22:23:09 +0000 (-0300) Subject: V4L/DVB (12685): dvb-core: check fe->ops.set_frontend return value X-Git-Tag: v2.6.32-rc1~679^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01886255ddf440eb21d3388bfc5343c966904d0e;p=pandora-kernel.git V4L/DVB (12685): dvb-core: check fe->ops.set_frontend return value Various frontend driver have parameter checks in their set_frontend functions and return an error if the parameters are not supported, tda10021 and cx24116 to name two. The tuning ioctls FE_SET_FRONTEND/FE_SET_PROPERTY only change values in the property cache and return before set_frontend is called. If a set_frontend call in software zigzag algorithm fails and the card was previously locked it will report a lock and the new parameters but is still tuned to the old transport. This is not detectable from userspace. This change checks the return values of fe->ops.set_frontend and changes the state to the added FESTATE_ERROR for software zigzag. No lock will be reported to userspace if the State is FESTATE_ERROR. Signed-off-by: Janne Grunau Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed