IB/ipath: fix for crash on module unload, if cfgports < portcnt