msm: ipa3: Fix to validate the user inputs

Miss to Validate user inputs for last entry while
sending the QMI message to modem. Adding code changes to
fix to validate user inputs for last entry.

Change-Id: If2c6c4fbfc922d56355d26a16f844fd57d4992ac
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
This commit is contained in:
Mohammed Javid 2018-02-14 18:51:10 +05:30 committed by Gerrit - the friendly Code Review server
parent 8e13fa3873
commit c2c950b468

View file

@ -1,4 +1,4 @@
/* Copyright (c) 2013-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -707,7 +707,7 @@ int ipa3_qmi_filter_request_ex_send(
return -EINVAL;
}
for (i = 0; i < req->filter_spec_ex_list_len-1; i++) {
for (i = 0; i < req->filter_spec_ex_list_len; i++) {
if ((req->filter_spec_ex_list[i].ip_type !=
QMI_IPA_IP_TYPE_V4_V01) &&
(req->filter_spec_ex_list[i].ip_type !=