diff mbox

linux-generic:pktio mmap: fix nb_rx overflow

Message ID 1463066668-11465-1-git-send-email-maxim.uvarov@linaro.org
State Accepted
Commit 5b895ff75edeca76e6cb94618e4ca9c4f7990489
Headers show

Commit Message

Maxim Uvarov May 12, 2016, 3:24 p.m. UTC
bug:
https://bugs.linaro.org/show_bug.cgi?id=2224

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
---
 platform/linux-generic/pktio/socket_mmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Bill Fischofer May 12, 2016, 6:44 p.m. UTC | #1
On Thu, May 12, 2016 at 10:24 AM, Maxim Uvarov <maxim.uvarov@linaro.org>
wrote:

> bug:

> https://bugs.linaro.org/show_bug.cgi?id=2224

>

> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

>


Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>



> ---

>  platform/linux-generic/pktio/socket_mmap.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

>

> diff --git a/platform/linux-generic/pktio/socket_mmap.c

> b/platform/linux-generic/pktio/socket_mmap.c

> index 4170456..22a762f 100644

> --- a/platform/linux-generic/pktio/socket_mmap.c

> +++ b/platform/linux-generic/pktio/socket_mmap.c

> @@ -154,7 +154,7 @@ static inline unsigned pkt_mmap_v2_rx(pktio_entry_t

> *pktio_entry,

>         int pkt_len;

>         struct ethhdr *eth_hdr;

>         unsigned i = 0;

> -       uint8_t nb_rx = 0;

> +       unsigned nb_rx = 0;

>         struct ring *ring;

>         int ret;

>

> --

> 2.7.1.250.gff4ea60

>

> _______________________________________________

> lng-odp mailing list

> lng-odp@lists.linaro.org

> https://lists.linaro.org/mailman/listinfo/lng-odp

>
Maxim Uvarov May 13, 2016, 2:08 p.m. UTC | #2
Merged,
Maxim.

On 05/12/16 21:44, Bill Fischofer wrote:
>
>
> On Thu, May 12, 2016 at 10:24 AM, Maxim Uvarov 
> <maxim.uvarov@linaro.org <mailto:maxim.uvarov@linaro.org>> wrote:
>
>     bug:
>     https://bugs.linaro.org/show_bug.cgi?id=2224
>
>     Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org
>     <mailto:maxim.uvarov@linaro.org>>
>
>
> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org 
> <mailto:bill.fischofer@linaro.org>>
>
>     ---
>      platform/linux-generic/pktio/socket_mmap.c | 2 +-
>      1 file changed, 1 insertion(+), 1 deletion(-)
>
>     diff --git a/platform/linux-generic/pktio/socket_mmap.c
>     b/platform/linux-generic/pktio/socket_mmap.c
>     index 4170456..22a762f 100644
>     --- a/platform/linux-generic/pktio/socket_mmap.c
>     +++ b/platform/linux-generic/pktio/socket_mmap.c
>     @@ -154,7 +154,7 @@ static inline unsigned
>     pkt_mmap_v2_rx(pktio_entry_t *pktio_entry,
>             int pkt_len;
>             struct ethhdr *eth_hdr;
>             unsigned i = 0;
>     -       uint8_t nb_rx = 0;
>     +       unsigned nb_rx = 0;
>             struct ring *ring;
>             int ret;
>
>     --
>     2.7.1.250.gff4ea60
>
>     _______________________________________________
>     lng-odp mailing list
>     lng-odp@lists.linaro.org <mailto:lng-odp@lists.linaro.org>
>     https://lists.linaro.org/mailman/listinfo/lng-odp
>
>
diff mbox

Patch

diff --git a/platform/linux-generic/pktio/socket_mmap.c b/platform/linux-generic/pktio/socket_mmap.c
index 4170456..22a762f 100644
--- a/platform/linux-generic/pktio/socket_mmap.c
+++ b/platform/linux-generic/pktio/socket_mmap.c
@@ -154,7 +154,7 @@  static inline unsigned pkt_mmap_v2_rx(pktio_entry_t *pktio_entry,
 	int pkt_len;
 	struct ethhdr *eth_hdr;
 	unsigned i = 0;
-	uint8_t nb_rx = 0;
+	unsigned nb_rx = 0;
 	struct ring *ring;
 	int ret;