Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbd: prevent calling rbdVolume.Destroy() after an error #4564

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Commits on Apr 17, 2024

  1. 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: ceph#4562
    Signed-off-by: Niels de Vos <ndevos@ibm.com>
    nixpanic committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    a4b6ef4 View commit details
    Browse the repository at this point in the history