[PATCH 3/5] libhns: Fix possible overflow in cq clean