mirror of
https://github.com/containerd/containerd.git
synced 2026-08-09 09:33:06 +00:00
dmsetup.Status() returns a nil DeviceStatus when it fails. The mkfs failure path records that error, but still unconditionally dereferences status when logging the pool status. Avoid the panic by logging a fallback status string when dmsetup.Status() does not return a status. Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Mikhail Dmitrichenko <m.dmitrichenko222@gmail.com>