Skip to content

Commit

Permalink
Fix iBFT target flags check.
Browse files Browse the repository at this point in the history
When filling in the target context for an iBFT target,
we were putting "flags" in target_flags, but then checking
nic_flags.
  • Loading branch information
gonzoleeman authored and Mike Christie committed Apr 3, 2015
1 parent a277d31 commit 8da14e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/fwparam_ibft/fwparam_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ static int fill_tgt_context(char *subsys, char *id,
* sets Bit 1 (Firmware Booting Selected).
* So any setting is deemed okay.
*/
if (!rc && (context->nic_flags == 0))
if (!rc && (context->target_flags == 0))
rc = ENODEV;
if (rc)
return rc;
Expand Down

0 comments on commit 8da14e6

Please sign in to comment.