We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae557a3 commit beb9ccaCopy full SHA for beb9cca
drivers/rf-transceiver/ad9361/ad9361.c
@@ -1746,7 +1746,7 @@ static int32_t ad9361_rfpll_vco_init(struct ad9361_rf_phy *phy,
1746
uint32_t ref_clk)
1747
{
1748
struct no_os_spi_desc *spi = phy->spi;
1749
- const struct SynthLUT(*tab);
+ const struct SynthLUT(*tab) = NULL;
1750
int32_t i = 0;
1751
uint32_t range, offs = 0;
1752
@@ -1775,6 +1775,12 @@ static int32_t ad9361_rfpll_vco_init(struct ad9361_rf_phy *phy,
1775
}
1776
1777
1778
+ if (tab == NULL) {
1779
+ dev_err(&phy->spi->dev,
1780
+ "%s: Failed to find suitable SynthLUT table", __func__);
1781
+ return -EINVAL;
1782
+ }
1783
+
1784
if (tx)
1785
offs = REG_TX_VCO_OUTPUT - REG_RX_VCO_OUTPUT;
1786
0 commit comments