get_clones_stat does not call zap_count in non-debug kernel
zap_count is enclosed in ASSERT0 macro, which is empty for non-debug kernel.
VERIFY0 macro should be used instead.
Updated by Anonymous over 7 years ago
- Status changed from New to In Progress
- Assignee set to Alexander Stetsenko
- % Done changed from 0 to 100
zap_count(...) is never called in non-DEBUG kernel.
As result "count" variable is always 0, and "goto fail" is always reached.
This means get_clones_stat function never makes up list of clones for "clones" properties.
The fix is simple - just to replace ASSERT0 on VERIFY0.
Updated by Electric Monk over 7 years ago
Author: Alexander Stetsenko <firstname.lastname@example.org> 4574 get_clones_stat does not call zap_count in non-debug kernel Reviewed by: Matthew Ahrens <email@example.com> Reviewed by: Marcel Telka <firstname.lastname@example.org> Approved by: Gordon Ross <email@example.com>