Received: from iron100.routit.net ([89.146.30.22]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XKWsk-0001Q8-1D for linux-mtd@lists.infradead.org; Thu, 21 Aug 2014 18:14:42 +0000 Message-ID: <53F636E0.8030605@raritan.com> Date: Thu, 21 Aug 2014 20:13:52 +0200 From: Ronald Wahl MIME-Version: 1.0 To: linux-mtd@lists.infradead.org Subject: cfi_intelext_is_locked() misses get_chip()/put_chip() calls Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi, cfi_intelext_is_locked() in cfi_cmdset_0001.c calls do_getlockstatus_oneblock() withou calling get_chip() before and put_chip() afterwards. So chip state is changed without protection. This may lead to hanging processes. Is this analysis correct? If someone can fix this quickly - fine - but I can also provide a patch. greets, ron -- Ronald Wahl - ronald.wahl@raritan.com - Phone +49 375271349-0 Fax -99 Raritan Deutschland GmbH, Kornmarkt 7, 08056 Zwickau, Germany USt-IdNr. DE813094160, Steuer-Nr. 227/117/01749 Amtsgericht Chemnitz HRB 23605 Geschäftsführung: Stuart Hopper, Ralf Ploenes