But I do call ibonl(ud,0), and it still fails. I have an utterly trivial testcase, which opens one device, then takes it offline (with ibonl(ud,0)), then takes the card offline (ibonl(0,0)), then stops cleanly. I can call this program 32 times. On the 33rd attempt the ibdev call fails. If I open more devices (and close them), it fails earlier. Test case is attached.