Project

General

Profile

Actions

Bug #7511

closed

swapctl(SC_LIST) allocation nihilism

Added by Robert Mustacchi over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
kernel
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

Also available in: Atom PDF