mirror of
git://nv-tegra.nvidia.com/kernel/nvethernetrm.git
synced 2025-12-25 02:52:22 +03:00
osi: core: dma: fix issue identified in unit testing
Issue: - rx_ring pointer validation missing in interface API - Misra-C issue introduced while fixing Advisory error. - if addend = diff, osi_adjut_freq return -1 - OSI_MAC_TCR_SNAPTYPSEL_3 unused macro Fix: - add check for rx_ring pointer validation - Fix Misra C error - proceed further instead of returning -1 - Hide OSI_MAC_TCR_SNAPTYPSEL_3 for QNX Bug 200686220 Change-Id: I806b4f33b86ee08c96ddb76fbfb91bf394206d70 Signed-off-by: rakesh goyal <rgoyal@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/2459580 (cherry picked from commit fabc231aa387a74158b6efe926659c33c1abf0c6) Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/2460837 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Bhadram Varka <vbhadram@nvidia.com> Reviewed-by: Ashutosh Jha <ajha@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
a04cb8e6d7
commit
7a1419d26e
@@ -128,7 +128,6 @@
|
||||
* @{
|
||||
*/
|
||||
#define OSI_UCHAR_MAX (0xFFU)
|
||||
#define OSI_ULLONG_MAX (~0ULL)
|
||||
|
||||
/* Logging defines */
|
||||
/* log levels */
|
||||
|
||||
Reference in New Issue
Block a user