Skip to content

Commit 7041583

Browse files
Ruby ZhuangCQ Bot
authored andcommitted
[hvdcp_opti] Fix ReadWriteBytesFile so it actually stores data
Bug: 465183573 Test: tested on Sorrel that qbg_context is not empty Change-Id: I4d00c3188bedf8cc5cf1ad9d1cc006dfb2c0188c Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1442488 Commit-Queue: Ruby Zhuang <rdzhuang@google.com> Reviewed-by: Benjamin Lerman <qsr@google.com>
1 parent 40b4419 commit 7041583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/starnix/modules/hvdcp_opti/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub struct ReadWriteBytesFile {
4040

4141
impl ReadWriteBytesFile {
4242
pub fn new_node() -> impl FsNodeOps {
43-
SimpleFileNode::new(move || Ok(BytesFile::new(Self::default())))
43+
BytesFile::new_node(Self::default())
4444
}
4545
}
4646

0 commit comments

Comments
 (0)