Skip to content

Commit dad42d1

Browse files
jchu314atgithubstellarhopper
authored andcommitted
libnvdimm/security: fix a typo
commit d78c620 ("libnvdimm/security: Introduce a 'frozen' attribute") introduced a typo, causing a 'nvdimm->sec.flags' update being overwritten by the subsequent update meant for 'nvdimm->sec.ext_flags'. Link: https://lore.kernel.org/r/[email protected] Fixes: d78c620 ("libnvdimm/security: Introduce a 'frozen' attribute") Cc: Dan Williams <[email protected]> Reviewed-by: Dave Jiang <[email protected]> Signed-off-by: Jane Chu <[email protected]> Signed-off-by: Vishal Verma <[email protected]>
1 parent 9f1048d commit dad42d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvdimm/security.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ void __nvdimm_security_overwrite_query(struct nvdimm *nvdimm)
457457
clear_bit(NDD_WORK_PENDING, &nvdimm->flags);
458458
put_device(&nvdimm->dev);
459459
nvdimm->sec.flags = nvdimm_security_flags(nvdimm, NVDIMM_USER);
460-
nvdimm->sec.flags = nvdimm_security_flags(nvdimm, NVDIMM_MASTER);
460+
nvdimm->sec.ext_flags = nvdimm_security_flags(nvdimm, NVDIMM_MASTER);
461461
}
462462

463463
void nvdimm_security_overwrite_query(struct work_struct *work)

0 commit comments

Comments
 (0)