Actions
Bug #7511
closedswapctl(SC_LIST) allocation nihilism
Start date:
2016-10-25
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
The swapctl (and swapctl32) functions in the kernel allow, amongst other things, the return of the current list of attached swap files. In the event that none are attached swapctl allocates anyway, but with a size of zero. To minimize potential programmer errors, we short circuit the rest of the logic in this case.
Actions