From 1d842e0767040fca346abcdc52861b214225ea13 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 23 Aug 2011 10:15:08 -0700 Subject: 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 --- host/lib/usrp/usrp2/usrp2_impl.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'host') 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 _mbc; -- cgit v1.2.3