staging: gdm724x: check for overflow in gdm_lte_netif_rx()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 14 Jun 2021 09:58:36 +0000 (12:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Jun 2021 14:39:33 +0000 (16:39 +0200)
commit7002b526f4ff1f6da34356e67085caafa6be383a
treeb10212e4d08cac4a8c49aca7119c25cbdaf4d0df
parent4a36e160856db8a8ddd6a3d2e5db5a850ab87f82
staging: gdm724x: check for overflow in gdm_lte_netif_rx()

This code assumes that "len" is at least 62 bytes, but we need a check
to prevent a read overflow.

Fixes: 61e121047645 ("staging: gdm7240: adding LTE USB driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YMcoTPsCYlhh2TQo@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm724x/gdm_lte.c