diff options
author | Josh Blum <josh@joshknows.com> | 2011-08-23 10:15:08 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-08-23 10:15:08 -0700 |
commit | 1d842e0767040fca346abcdc52861b214225ea13 (patch) | |
tree | 12a6a59db306e33472384741b8b0bd8bd58455a9 /host | |
parent | e033fc3d7f6d3baad76af9c5aa9f7f3aaeffab39 (diff) | |
download | uhd-1d842e0767040fca346abcdc52861b214225ea13.tar.gz uhd-1d842e0767040fca346abcdc52861b214225ea13.tar.bz2 uhd-1d842e0767040fca346abcdc52861b214225ea13.zip |
usrp2: initialize channel occupancy variables,
this fixes a bug when there are multiple mboard per device,
the occupancy int could be uninitialized to a bad value,
while subdev specs are being setup for the first time,
and cause allocation issues
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_impl.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.hpp b/host/lib/usrp/usrp2/usrp2_impl.hpp index c0f4b1e6e..fe7be9b66 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.hpp +++ b/host/lib/usrp/usrp2/usrp2_impl.hpp @@ -104,6 +104,7 @@ private: uhd::usrp::dboard_manager::sptr dboard_manager; uhd::usrp::dboard_iface::sptr dboard_iface; size_t rx_chan_occ, tx_chan_occ; + mb_container_type(void): rx_chan_occ(0), tx_chan_occ(0){} }; uhd::dict<std::string, mb_container_type> _mbc; |