summaryrefslogtreecommitdiff
path: root/astraceroute/.gitignore
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-10-29 15:58:05 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-10-29 15:58:05 +0100
commit55274adedcabdc3f1e4d66b2c3b77b1612acf20d (patch)
tree0d6b5cd7315022b5dd543698a9dcdd51eb050fda /astraceroute/.gitignore
parentdbd83f04dfb4b4265a290bad6a1813825f7ab3c6 (diff)
ring: Simplify calculation of number of frames in a tpacket ring
The number of frames in a tpacket ring (ring->layout.tp_frame_nr) is currently calculated as: tp_frame_nr = tp_block_size / tp_frame_size * tp_block_nr Substituting tp_block_nr with 'size / tp_block_size' (as calculated in the line above), we get: tp_frame_nr = tp_block_size / tp_frame_size * (size / tp_block_size) and realize that we can omit tp_block_size as it cancels out, leading to: tp_frame_nr = 1 / tp_frame_size * (size / 1) = size / tp_frame_size Adjust the calculation in setup_ring_layout_generic() accordingly. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'astraceroute/.gitignore')
0 files changed, 0 insertions, 0 deletions
gt;] alg_test+0x17c/0x2f0 [<ffff00000834c6a4>] cryptomgr_test+0x44/0x50 [<ffff0000080dac70>] kthread+0xf8/0x128 [<ffff000008082ec0>] ret_from_fork+0x10/0x50 The test vectors used for input are part of the kernel image. These inputs are passed as a buffer to sg_init_one which eventually blows up with BUG_ON(!virt_addr_valid(buf)). On arm64, virt_addr_valid returns false for the kernel image since virt_to_page will not return the correct page. Fix this by copying the input vectors to heap buffer before setting up the scatterlist. Reported-by: Christopher Covington <cov@codeaurora.org> Fixes: d7db7a882deb ("crypto: acomp - update testmgr with support for acomp") Signed-off-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/usb/gadget/Kconfig')