aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2014-10-23 12:58:58 -0700
committerDavid S. Miller <[email protected]>2014-10-25 16:10:04 -0400
commit349ce993ac706869d553a1816426d3a4bfda02b1 (patch)
tree732254796f8ee7b580db164f2f9732a2e948093e /lib/cpu-notifier-error-inject.c
parent4cc40af08032a513e2e68fa6d7818b77179a86af (diff)
tcp: md5: do not use alloc_percpu()
percpu tcp_md5sig_pool contains memory blobs that ultimately go through sg_set_buf(). -> sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf)); This requires that whole area is in a physically contiguous portion of memory. And that @buf is not backed by vmalloc(). Given that alloc_percpu() can use vmalloc() areas, this does not fit the requirements. Replace alloc_percpu() by a static DEFINE_PER_CPU() as tcp_md5sig_pool is small anyway, there is no gain to dynamically allocate it. Signed-off-by: Eric Dumazet <[email protected]> Fixes: 765cf9976e93 ("tcp: md5: remove one indirection level in tcp_md5sig_pool") Reported-by: Crestez Dan Leonard <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions