[PATCH 5.15] malidp: Fix NULL vs IS_ERR() checking