aboutsummaryrefslogtreecommitdiff
path: root/pkg/datalocality/mapping.go
diff options
context:
space:
mode:
authorchrislusf <chris.lu@gmail.com>2025-12-03 19:39:15 -0800
committerChris Lu <chrislusf@users.noreply.github.com>2025-12-03 20:52:27 -0800
commitdfad8b9747b114c863838cf48223fcebe3049890 (patch)
tree046136e7f909eda59ed62a737a00ef685447ebf9 /pkg/datalocality/mapping.go
parent05ac88f67723f1a6ce60543413f3ae59d2e85654 (diff)
downloadseaweedfs-csi-driver-dfad8b9747b114c863838cf48223fcebe3049890.tar.xz
seaweedfs-csi-driver-dfad8b9747b114c863838cf48223fcebe3049890.zip
fix: add nil checks for AccessMode to prevent panic
Address CodeRabbit review feedback - add defensive nil checks for GetVolumeCapability() and GetAccessMode() in both isPublishVolumeReadOnly and isVolumeReadOnly to prevent potential nil pointer dereference.
Diffstat (limited to 'pkg/datalocality/mapping.go')
0 files changed, 0 insertions, 0 deletions