aboutsummaryrefslogtreecommitdiff
path: root/pkg/driver/mount_util.go
diff options
context:
space:
mode:
authorchrislusf <chris.lu@gmail.com>2025-12-03 19:39:15 -0800
committerchrislusf <chris.lu@gmail.com>2025-12-03 19:39:15 -0800
commit51aef3c1d61bc4fd095a51c989c3957692a2a172 (patch)
treea955a72ff1619d2bf90bf887098326b4d5f38ad2 /pkg/driver/mount_util.go
parenta0500b8a994235079337599ba6ebdc598a671abf (diff)
downloadseaweedfs-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