Dave Jiang <[email protected]> wrote:

> +     /* look for a key from keyring if exists and remove */
> +     old_key = nvdimm_search_key(dev);
> +     if (old_key) {
> +             dev_dbg(dev, "%s: killing old key: %#x\n",
> +                             __func__, old_key->serial);
> +             key_invalidate(old_key);
> +             key_put_sync(old_key);
> +     }

Why don't you unlink the key from the .nvdimm keyring here?

David
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm

Reply via email to