Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mtd/smartfs: Fix uninitialized variable #6637

Merged

Conversation

SPRESENSE
Copy link
Contributor

Summary

If CONFIG_SMARTFS_MULTI_ROOT_DIRS is enabled and dev->partname is not empty,
dev->rwbuffer is an uninitialized variable and register_blockdriver is called.

Impact

SmartFS: CONFIG_SMARTFS_MULTI_ROOT_DIRS is enabled and partition name is used.

Testing

Build pass

If CONFIG_SMARTFS_MULTI_ROOT_DIRS is enabled and dev->partname is not empty,
dev->rwbuffer is an uninitialized variable and register_blockdriver is called.
@pkarashchenko pkarashchenko merged commit b04c497 into apache:master Jul 19, 2022
@SPRESENSE SPRESENSE deleted the pr/fix-smartfs-multi-partitions branch October 19, 2022 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants