reencrypt: fix checking of context name arguments.

This commit is contained in:
Milan Broz
2023-03-09 17:06:58 +01:00
parent d209bb27b4
commit a752e571ab

View File

@@ -1413,7 +1413,7 @@ static int reencrypt_init_storage_wrappers(struct crypt_device *cd,
static int reencrypt_context_set_names(struct luks2_reencrypt *rh, const char *name)
{
if (!rh | !name)
if (!rh || !name)
return -EINVAL;
if (*name == '/') {