Received: by mail.netbsd.org (Postfix, from userid 605) id 5A97D84DF7; Fri, 9 Jun 2017 16:52:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id D8D2784DF6 for ; Fri, 9 Jun 2017 16:52:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id l-59XBjUcSt8 for ; Fri, 9 Jun 2017 16:52:10 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 82F2384CE2 for ; Fri, 9 Jun 2017 16:52:10 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 80F2EFB81; Fri, 9 Jun 2017 16:52:10 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Fri, 9 Jun 2017 16:52:10 +0000 From: "Soren Jacobsen" Subject: CVS commit: [netbsd-8] src/sys/dev/sdmmc To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20170609165210.80F2EFB81@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Soren Jacobsen" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: snj Date: Fri Jun 9 16:52:10 UTC 2017 Modified Files: src/sys/dev/sdmmc [netbsd-8]: ld_sdmmc.c Log Message: Pull up following revision(s) (requested by jmcneill in ticket #14): sys/dev/sdmmc/ld_sdmmc.c: revision 1.27 Fix a race between ld_sdmmc_start and ld_sdmmc_dobio that could result in tasks getting lost from the task queue. The symptom of this is a NULL deref in ld_sdmmc_start since the code assumes that a task will always be available from the pool. This changes the code to use pcq(9) instead of a TAILQ to manage the free task list. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.26.4.1 src/sys/dev/sdmmc/ld_sdmmc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.