diff options
author | Stefani Seibold <[email protected]> | 2013-02-27 17:05:51 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2013-02-27 19:10:23 -0800 |
commit | dfe2a77fd243ac3bf204fd0624e4d0b2134aaa6d (patch) | |
tree | 8ec9dd36b30a4cb53138dec2b07bc4a4c79fa49e /net/unix/sysctl_net_unix.c | |
parent | c759b35e6469fe7519e9fe45d5285d49f12cb657 (diff) |
kfifo: fix kfifo_alloc() and kfifo_init()
Fix kfifo_alloc() and kfifo_init() to alloc at least the requested number
of elements. Since the kfifo operates on power of 2 the request size will
be rounded up to the next power of two.
Signed-off-by: Stefani Seibold <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions