Skip to content

Commit

Permalink
prepareForS3Sleep: use locking range
Browse files Browse the repository at this point in the history
Untested, but it seems odd to use 0 when it's passed in from the command
line.
  • Loading branch information
ckamm committed Jun 6, 2019
1 parent c1689c7 commit da7b267
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion linux/DtaDevLinuxDrive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ uint8_t DtaDevLinuxDrive::prepareForS3Sleep(uint8_t lockingrange, const char *us

opal_lock_unlock opal_ioctl_data={};
opal_ioctl_data.l_state = OPAL_RW;
opal_ioctl_data.session.opal_key.lr = 0;
opal_ioctl_data.session.opal_key.lr = lockingrange;

if (!strcmp("Admin1", userid))
{
Expand Down
2 changes: 1 addition & 1 deletion linux/DtaDevOS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ uint8_t DtaDevOS::prepareForS3Sleep(uint8_t lockingrange, const char* userid, ch
DtaHashPwd(hash, password, this);
hash->erase(hash->begin(), hash->begin()+2);

err = drive->prepareForS3Sleep(0, userid, hash);
err = drive->prepareForS3Sleep(lockingrange, userid, hash);
if (err)
{
LOG(E) << "Error saving the password to the kernel errno = " << errno;
Expand Down

0 comments on commit da7b267

Please sign in to comment.