[PATCH 4.14 05/30] qed/qed_dev: guard against a possible division by zero