Skip to content

iio: frequency: adf4030: fix possible unitialized 'ret' #2766

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

Closed
wants to merge 1 commit into from

Conversation

nunojsa
Copy link
Collaborator

@nunojsa nunojsa commented Apr 24, 2025

In adf4030_chan_dir_set(), every time 'initial' is false, 'ret' was being used unitialized because we're ignoring the return value from regmap_update_bits(). Make sure we don't!

Fixes: 54bbd40 ("iio: frequency: support the adf4030 Synchronizer")

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have conducted a self-review of my own code changes
  • I have tested the changes on the relevant hardware
  • I have updated the documentation outside this repo accordingly (if there is the case)

In adf4030_chan_dir_set(), every time 'initial' is false, 'ret' was being
used uninitialized because we're ignoring the return value from
regmap_update_bits(). Make sure we don't!

Fixes: 54bbd40 ("iio: frequency: support the adf4030 Synchronizer")
Signed-off-by: Nuno Sá <[email protected]>
@nunojsa nunojsa force-pushed the staging/adf4030-fix branch from 147714c to a98de6d Compare April 28, 2025 09:44
@nunojsa
Copy link
Collaborator Author

nunojsa commented Apr 28, 2025

v2:

  • fixed checkpatch complains...

@nunojsa
Copy link
Collaborator Author

nunojsa commented Apr 29, 2025

for some reason, the merge happened but the PR was not closed

@nunojsa nunojsa closed this Apr 29, 2025
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.

2 participants