Skip to content

Commit

Permalink
Fix the userlist length get lost after reboot (#17140)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca authored and pull[bot] committed Dec 6, 2023
1 parent c340d76 commit 0f3673a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platform/Linux/DeviceInfoProviderImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ CHIP_ERROR DeviceInfoProviderImpl::SetUserLabelLength(EndpointId endpoint, size_
{
DefaultStorageKeyAllocator keyAlloc;

return mStorage.WriteValue(keyAlloc.UserLabelLengthKey(endpoint), val);
ReturnErrorOnFailure(mStorage.WriteValue(keyAlloc.UserLabelLengthKey(endpoint), val));

return mStorage.Commit();
}

CHIP_ERROR DeviceInfoProviderImpl::GetUserLabelLength(EndpointId endpoint, size_t & val)
Expand Down

0 comments on commit 0f3673a

Please sign in to comment.