diff options
| author | chrislusf <chris.lu@gmail.com> | 2025-12-03 19:39:15 -0800 |
|---|---|---|
| committer | Chris Lu <chrislusf@users.noreply.github.com> | 2025-12-03 20:52:27 -0800 |
| commit | dfad8b9747b114c863838cf48223fcebe3049890 (patch) | |
| tree | 046136e7f909eda59ed62a737a00ef685447ebf9 /pkg/datalocality/mapping.go | |
| parent | 05ac88f67723f1a6ce60543413f3ae59d2e85654 (diff) | |
| download | seaweedfs-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
