diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-06-17 14:11:10 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-06-17 14:16:20 -0400 |
commit | 5f78abeebbf0a80975d719e11374535ca15396cb (patch) | |
tree | 8c5a5f11caadc1cb662152fb1ef84b5b1fa19bbb /fs | |
parent | 0dcd4d6c3e5b17ccf88d41cb354bb4d57cb18cbf (diff) |
ring-buffer: check for less than two in size allocation
The ring buffer must have at least two pages allocated for the
reader page swap to work.
The page count check will miss the case of a zero size passed in.
Even though a zero size ring buffer would probably fail an allocation,
making the min size check for less than two instead of equal to one makes
the code a bit more robust.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions