When transfer rangelow and rangehigh from user space, the local variable
rangelow and rangehigh will not be initialized before using them.
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
(cherry picked from commit
c326f56005f0ee3d0c1fd6ebdebabda919c278dd)
rangelow = si476x_to_v4l2(radio->core, rangelow);
else
goto unlock;
- }
+ } else
+ rangelow = seek->rangelow;
if (!seek->rangehigh) {
err = regmap_read(radio->core->regmap,
SI476X_PROP_SEEK_BAND_TOP,
rangehigh = si476x_to_v4l2(radio->core, rangehigh);
else
goto unlock;
- }
+ } else
+ rangehigh = seek->rangehigh;
if (rangelow > rangehigh) {
err = -EINVAL;