IB/srpt: Fix ERR_PTR() vs. NULL checking confusion