From owner-svn-src-all@freebsd.org Tue Dec 24 23:43:30 2019 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3550F1CC095; Tue, 24 Dec 2019 23:43:30 +0000 (UTC) (envelope-from loos@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47jCTZ0XzRz4KT2; Tue, 24 Dec 2019 23:43:30 +0000 (UTC) (envelope-from loos@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0D9D47D2D; Tue, 24 Dec 2019 23:43:30 +0000 (UTC) (envelope-from loos@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xBONhTvP097297; Tue, 24 Dec 2019 23:43:29 GMT (envelope-from loos@FreeBSD.org) Received: (from loos@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xBONhTtC097295; Tue, 24 Dec 2019 23:43:29 GMT (envelope-from loos@FreeBSD.org) Message-Id: <201912242343.xBONhTtC097295@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: loos set sender to loos@FreeBSD.org using -f From: Luiz Otavio O Souza Date: Tue, 24 Dec 2019 23:43:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r356065 - head/sys/arm/arm X-SVN-Group: head X-SVN-Commit-Author: loos X-SVN-Commit-Paths: head/sys/arm/arm X-SVN-Commit-Revision: 356065 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Dec 2019 23:43:30 -0000 Author: loos Date: Tue Dec 24 23:43:29 2019 New Revision: 356065 URL: https://svnweb.freebsd.org/changeset/base/356065 Log: Initialize the bounce pages list in armv[4|6] DMA maps. Fixes the crash on the first use of STAILQ_INSERT_TAIL() in add_bounce_page(). Sponsored by: Rubicon Communications, LLC (Netgate) Modified: head/sys/arm/arm/busdma_machdep-v4.c head/sys/arm/arm/busdma_machdep-v6.c Modified: head/sys/arm/arm/busdma_machdep-v4.c ============================================================================== --- head/sys/arm/arm/busdma_machdep-v4.c Tue Dec 24 23:20:18 2019 (r356064) +++ head/sys/arm/arm/busdma_machdep-v4.c Tue Dec 24 23:43:29 2019 (r356065) @@ -669,6 +669,7 @@ allocate_map(bus_dma_tag_t dmat, int mflags) return (NULL); } map->segments = (bus_dma_segment_t *)((uintptr_t)map + mapsize); + STAILQ_INIT(&map->bpages); return (map); } Modified: head/sys/arm/arm/busdma_machdep-v6.c ============================================================================== --- head/sys/arm/arm/busdma_machdep-v6.c Tue Dec 24 23:20:18 2019 (r356064) +++ head/sys/arm/arm/busdma_machdep-v6.c Tue Dec 24 23:43:29 2019 (r356065) @@ -735,6 +735,7 @@ allocate_map(bus_dma_tag_t dmat, int mflags) return (NULL); } map->segments = (bus_dma_segment_t *)((uintptr_t)map + mapsize); + STAILQ_INIT(&map->bpages); return (map); }