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

Fix wcmForeachDevice check in wcmMatchDevice #343

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

whot
Copy link
Member

@whot whot commented Apr 10, 2024

wcmForeachDevice returns 0 for no matches, a negative errno or the greater-than-zero number of matches. In wcmMatchDevice we return either 0 or 1 as matchDevice() stops the foreach once the first match is encountered.

Fixes: d5ca999 ("Add a helper function to iterate over local devices to the driver layer") Closes #342

cc @omcaif

wcmForeachDevice returns 0 for no matches, a negative errno or the
greater-than-zero number of matches. In wcmMatchDevice we return either
0 or 1 as matchDevice() stops the foreach once the first match is
encountered.

Fixes: d5ca999 ("Add a helper function to iterate over local devices to the driver layer")
Closes linuxwacom#342
@whot whot merged commit d557881 into linuxwacom:master Apr 12, 2024
13 checks passed
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.

wcmConfig.c use after free segmentation fault causing X server to crash
1 participant