Summary: | sys/dev/cyapa/cyapa.c: PVS-Studio: V778 Two similar code fragments were found. Perhaps, this is a typo and 'cap_resy' variable should be used instead of 'cap_resx'. | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Svyatoslav <razmyslov> | ||||
Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Many People | CC: | emaste, grembo | ||||
Priority: | --- | Keywords: | patch | ||||
Version: | CURRENT | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Svyatoslav
2017-03-14 13:29:26 UTC
Looks reasonable Fixed in current, thank you for providing the patch. Will MFC to 11 as well. A commit references this bug: Author: grembo Date: Tue Aug 8 13:27:32 UTC 2017 New revision: 322253 URL: https://svnweb.freebsd.org/changeset/base/322253 Log: Fix typo in cyapa out of bounds check. PR: 217783 Submitted by: razmyslov@viva64.com MFC after: 1 week Changes: head/sys/dev/cyapa/cyapa.c |