aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rfspace
diff options
context:
space:
mode:
authorJon Szymaniak <jon.szymaniak@gmail.com>2014-03-07 01:44:17 -0500
committerDimitri Stolnikov <horiz0n@gmx.net>2014-03-10 15:36:59 +0100
commit542a3dbb2beeaab198f025344072438f88cd7747 (patch)
tree93974bf56039d8fee9aa64f55bd637d10a2890b8 /lib/rfspace
parent4e0a2c28e3399ad7a67b7a4baff5f59f4d633fca (diff)
bladerf: Fixed bug in cached device cleanup
A couple issues were present in bladerf_common::close, which caused entries in the _devs list (our "device cache") to not be removed. This would result in a stale device handle being used upon attempting to reopen the device. Two issues were associated with this bug: - The weak_ptr expired() conditional was incorrect; the logic was inverted. - The list item removal and iterator increment was done incorrectly and would result in a crash after the first item was fixed.
Diffstat (limited to 'lib/rfspace')
0 files changed, 0 insertions, 0 deletions