ceph-csi/internal
Niels de Vos a4b6ef4561 rbd: prevent calling rbdVolume.Destroy() after an error
It seems possible that the .Destroy() function is called on a nil
pointer. This would cause a panic in the node-plugin.

Depending on how far GenVolFromVolID() comes, the returned rbdVolume can
be connected. If an error occurs, the rbdVolume should not be connected
at all, so call the .Destroy() function in those cases too.

Fixes: #4562
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2024-04-17 12:29:37 +02:00
..
cephfs cephfs: address golangci-lint issues 2024-04-09 06:55:23 +00:00
controller util: address golangci-lint in controller 2024-04-09 06:55:23 +00:00
csi-addons csi-addons: address golangci-lint issues 2024-04-09 06:55:23 +00:00
csi-common util: address golangci-lint for csi-common 2024-04-09 06:55:23 +00:00
health-checker util: add health-checker for periodic filesystem checks 2023-11-03 13:41:44 +00:00
journal cleanup: remove nolint:interfacer comment 2024-04-09 06:55:23 +00:00
kms cleanup: client cert decoding is not required 2024-04-15 13:25:49 +00:00
liveness cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
nfs nfs: address golangci-lint issues 2024-04-09 06:55:23 +00:00
rbd rbd: prevent calling rbdVolume.Destroy() after an error 2024-04-17 12:29:37 +02:00
util util: address golangci-lint issues 2024-04-09 06:55:23 +00:00