From 93f616658d26cc207acb0fab29552965f5e2689b Mon Sep 17 00:00:00 2001 From: Mikhail Malyshev Date: Thu, 30 Jan 2025 15:03:04 +0100 Subject: [PATCH] Avoid nil dereference in baseosmgr - avoid nil dereference Signed-off-by: Mikhail Malyshev (cherry picked from commit 6bac1ef8b37cc5c21463abc2413a010d9b06cdac) --- pkg/pillar/cmd/baseosmgr/handledownload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/pillar/cmd/baseosmgr/handledownload.go b/pkg/pillar/cmd/baseosmgr/handledownload.go index 6b134e48d4..3129d3d8d7 100644 --- a/pkg/pillar/cmd/baseosmgr/handledownload.go +++ b/pkg/pillar/cmd/baseosmgr/handledownload.go @@ -68,7 +68,7 @@ func installDownloadedObjects(ctx *baseOsMgrContext, uuidStr, finalObjDir string if status == nil { return changed, proceed, fmt.Errorf("installDownloadedObjects(%s) cannot found contentTree %s", - uuidStr, status.ContentID) + uuidStr, contentID) } if status.State == types.LOADED {