summaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2015-06-11 13:21:51 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-06-15 14:35:59 +0200
commit66db383439b51b1aa920f3579da644fb5fdb2b7c (patch)
treeb233971244466cbbd9546b3d48400efb96837a87 /net/ipv4/tcp_ipv4.c
parent3cb02aeb28dd3f1b8a132fa3ecf6db17afd518d6 (diff)
downloadlinux-next-66db383439b51b1aa920f3579da644fb5fdb2b7c.tar.gz
ACPI / EC: Fix a code coverity issue when QR_EC transactions are failed.
When the QR_EC transaction fails, the EC_FLAGS_QUERY_PENDING flag prevents the event handling work queue from being scheduled again. Though there shouldn't be failed QR_EC transactions, and this gap was efficiently used for catching and learning the SCI_EVT clearing timing compliance issues, we need to fix this as we are not fully compatible with all platforms/Windows to handle SCI_EVT clearing timing correctly. Fixing this gives the EC driver the chances to recover from a state machine failure. So this patch fixes this issue. When nr_pending_queries drops to 0, it clears EC_FLAGS_QUERY_PENDING at the proper position for different modes in order to ensure that the SCI_EVT handling can proceed. In order to be clearer for future ec_event_clearing modes, all checks in this patch are written in the inclusive style, not the exclusive style. Cc: 3.16+ <stable@vger.kernel.org> # 3.16+ Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions