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 almost 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 almost 7 years ago
Author: Alexander Stetsenko <email@example.com> 4574 get_clones_stat does not call zap_count in non-debug kernel Reviewed by: Matthew Ahrens <firstname.lastname@example.org> Reviewed by: Marcel Telka <email@example.com> Approved by: Gordon Ross <firstname.lastname@example.org>