diff options
| author | chrislusf <chris.lu@gmail.com> | 2025-12-03 19:39:15 -0800 |
|---|---|---|
| committer | chrislusf <chris.lu@gmail.com> | 2025-12-03 19:39:15 -0800 |
| commit | 51aef3c1d61bc4fd095a51c989c3957692a2a172 (patch) | |
| tree | a955a72ff1619d2bf90bf887098326b4d5f38ad2 /pkg/driver/mount_util.go | |
| parent | a0500b8a994235079337599ba6ebdc598a671abf (diff) | |
| download | seaweedfs-csi-driver-51aef3c1d61bc4fd095a51c989c3957692a2a172.tar.xz seaweedfs-csi-driver-51aef3c1d61bc4fd095a51c989c3957692a2a172.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/driver/mount_util.go')
0 files changed, 0 insertions, 0 deletions
