diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2017-03-29 16:11:21 +0200 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2017-05-14 10:00:20 +0000 |
| commit | 1d0aad6f772a4000549ce63b7e51b59eac2f1668 (patch) | |
| tree | 4a66c621d178803c6bb017bb5a08305e88ef0523 /net/lapb/lapb_subr.c | |
| parent | 16f0f8b5cc95c403ec785936ffbab8db4914eb59 (diff) | |
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>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions
