uefirtvariable: fix the wrong operator used, coverity scan error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Firmware Test Suite |
Fix Released
|
Medium
|
Ivan Hu |
Bug Description
*** CID 1232806: Wrong operator used (CONSTANT_
/src/uefi/
777 setvariable.
778 setvariable.Data = data;
779 setvariable.status = &status;
780 ioret = ioctl(fd, EFI_RUNTIME_
781
782 if (ioret == -1) {
>>> CID 1232806: Wrong operator used (CONSTANT_
>>> "attributes | FWTS_UEFI_
783 if ((status == EFI_INVALID_
784 ((attributes | FWTS_UEFI_
785 (attributes | FWTS_UEFI_
786 (attributes | FWTS_UEFI_
787 fwts_uefi_
788 fwts_skipped(fw,
*** CID 1232805: Wrong operator used (CONSTANT_
/src/uefi/
938 setvariable.Data = data;
939 setvariable.status = &status;
940
941 ioret = ioctl(fd, EFI_RUNTIME_
942
943 if ((status == EFI_SUCCESS) && (ioret != -1)) {
>>> CID 1232805: Wrong operator used (CONSTANT_
>>> "attributes | FWTS_UEFI_
944 if ((attributes | FWTS_UEFI_
945 (attributes | FWTS_UEFI_
946 (status != EFI_INVALID_
947 fwts_warning(fw,
948 "Both the EFI_VARIABLE_
949 "EFI_VARIABLE_
Related branches
Changed in fwts: | |
assignee: | nobody → Ivan Hu (ivan.hu) |
importance: | Undecided → Medium |
Changed in fwts: | |
status: | New → In Progress |
Changed in fwts: | |
milestone: | none → 14.09.00 |
status: | Fix Committed → Fix Released |
Fix committed, commit b3e28e89d0a4414 898c56c36bf5e91 1951b0f509