qcacmn: Correct the data type of byte count variable

Use a 64-bit data type for byte count variable to prevent
data overflow.

Change-Id: I0e4927ebeece05cb9ee0360400e6a0da27862d32
CRs-Fixed: 2165595
This commit is contained in:
Pamidipati, Vijay
2018-01-03 15:32:12 +05:30
committed by snandini
parent 479698e1d7
commit 8e79865e11
2 changed files with 39 additions and 38 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011-2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2011-2018 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -787,7 +787,7 @@ struct cdp_pkt_info {
/*no of packets*/
uint32_t num;
/* total no of bytes */
uint32_t bytes;
uint64_t bytes;
};
/* Tx Stats */