android_kernel_google_msm/net/packet
Andrey Konovalov cbc79777c9 net/packet: fix overflow in check for tp_frame_nr
When calculating rb->frames_per_block * req->tp_block_nr the result
can overflow.

Add a check that tp_block_size * tp_block_nr <= UINT_MAX.

Since frames_per_block <= tp_block_size, the expression would
never overflow.

Change-Id: I3598423e621275aa1d890b80bcf9018929087d90
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
2017-07-04 12:34:18 +03:00
..
af_packet.c net/packet: fix overflow in check for tp_frame_nr 2017-07-04 12:34:18 +03:00
Kconfig packet: Kill CONFIG_PACKET_MMAP. 2010-02-05 16:29:48 -08:00
Makefile