From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOTpH-0005Qv-0G for qemu-devel@nongnu.org; Fri, 14 Mar 2014 11:15:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOTpA-0004GN-Oa for qemu-devel@nongnu.org; Fri, 14 Mar 2014 11:15:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOTpA-0004DA-Hh for qemu-devel@nongnu.org; Fri, 14 Mar 2014 11:15:04 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s2EFF3j5003022 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 14 Mar 2014 11:15:03 -0400 From: Stefan Hajnoczi Date: Fri, 14 Mar 2014 16:14:57 +0100 Message-Id: <1394810099-21028-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] dataplane: fix bogus coverity warnings List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Markus Armbruster , Stefan Hajnoczi , "Dr. David Alan Gilbert" Coverity detects when variable are accessed under a mutex most of the time. It warns when they are not accessed under the mutex. I initialized variables before the mutex and threads that access them even exist - Coverity doesn't like that. Fix the code. Stefan Hajnoczi (2): iothread: fix bogus coverity warning rfifolock: fix bogus coverity warning iothread.c | 5 ++++- util/rfifolock.c | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) -- 1.8.5.3