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

io_control01: fix the logic to identify the correct device #1220

Closed
wants to merge 1 commit into from

Conversation

akaher
Copy link
Contributor

@akaher akaher commented Feb 4, 2025

To select a device, both dev_major and dev_minor should match. However, following if condition passes if only one of them matches:
if (start.mjr == dev_major || start.mnr == dev_minor)
Fix:
if (start.mjr == dev_major && start.mnr == dev_minor)

Signed-off-by: Ajay Kaher [email protected]

To select a device, both dev_major and dev_minor should match. However,
following if condition passes if only one of them matches:
  if (start.mjr == dev_major || start.mnr == dev_minor)
Fix:
  if (start.mjr == dev_major && start.mnr == dev_minor)

Signed-off-by: Ajay Kaher <[email protected]>
@metan-ucw
Copy link
Member

Good catch, applied, thanks.

@metan-ucw metan-ucw closed this Feb 4, 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