[PR #6290] [MERGED] Harden intel boostrap for nil pointers #22612

Closed
opened 2026-04-19 16:26:22 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/6290
Author: @dhiltgen
Created: 8/9/2024
Status: Merged
Merged: 8/9/2024
Merged by: @dhiltgen

Base: mainHead: intel_npe


📝 Commits (1)

  • 5bca2e6 Harden intel boostrap for nil pointers

📊 Changes

1 file changed (+32 additions, -29 deletions)

View changed files

📝 gpu/gpu.go (+32 -29)

📄 Description

If the user enables intel GPU discovery, but the library doesn't initialize, we'd crash over a nil pointer.

Fixes #6284


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/6290 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 8/9/2024 **Status:** ✅ Merged **Merged:** 8/9/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `intel_npe` --- ### 📝 Commits (1) - [`5bca2e6`](https://github.com/ollama/ollama/commit/5bca2e60a7baefe582077469a1d14ff516b5d322) Harden intel boostrap for nil pointers ### 📊 Changes **1 file changed** (+32 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `gpu/gpu.go` (+32 -29) </details> ### 📄 Description If the user enables intel GPU discovery, but the library doesn't initialize, we'd crash over a nil pointer. Fixes #6284 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-19 16:26:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#22612