[bug report] ASoC: Intel: avs: Path creation and freeing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Cezary Rojewski,

This is a semi-automatic email about new static checker warnings.

    sound/soc/intel/avs/path.c:110 avs_path_find_variant()
    warn: variable dereferenced before check 'variant->be_fmt' (see line 105)

sound/soc/intel/avs/path.c
   104				variant->fe_fmt->valid_bit_depth, variant->fe_fmt->bit_depth);
   105			dev_dbg(adev->dev, "check BE rate %d chn %d vbd %d bd %d\n",
   106				variant->be_fmt->sampling_freq, variant->be_fmt->num_channels,
   107				variant->be_fmt->valid_bit_depth, variant->be_fmt->bit_depth);
                                ^^^^^^^^^^^^^^^                   ^^^^^^^^^^^^^^^
Unchecked dereferences

   108	
   109			if (variant->fe_fmt && avs_test_hw_params(fe_params, variant->fe_fmt) &&
   110			    variant->be_fmt && avs_test_hw_params(be_params, variant->be_fmt))
                            ^^^^^^^^^^^^^^^
Checked too late

   111				return variant;
   112		}

regards,
dan carpenter



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux