From patchwork Thu Oct 18 14:37:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Weinberger X-Patchwork-Id: 986020 X-Patchwork-Delegate: david.oberhollenzer@sigma-star.at Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=nod.at Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZAzbeWp9"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="AcgnQCB/"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42bXr83BBcz9s8T for ; Fri, 19 Oct 2018 02:23:36 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VJuBRJWUP9dlTxnJc5Obr37nIpuIunK204mlnTmxyqM=; b=ZAzbeWp9m66sNB y4s5I3PjUmxyHdrV9g9Bj29eWYF8mHcEBNAs7/nWDE0sxP1S+/3DJiN4A9NujxBttCSdWKKYB21bY oko1u8eP2sRQipeAgpck8ZoYAwff5UyXV/1JJjOQik6ZJv4aCF7VXshs/KBWB2/m0sGLYP7Hwx1J/ 6Z0fY0jh86tJgDj5U3h52CGQuBriw4gmxwSZrwsyhZKbe5pzNFxjZrzZ4FoIz2bZyTYWAC3F7ch0I dZh1ewxc9zZkFYc7oODk4wQjyjDCBeDwZ6bfAf1uRnWEmZZ5PvS/5djGQrbgFyRYCL7I3H9vhriUh EGqCgbwABGpfQWwye2Xg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gDA8v-0005je-GH; Thu, 18 Oct 2018 15:23:21 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gDA2e-00025V-6Z for linux-mtd@bombadil.infradead.org; Thu, 18 Oct 2018 15:16:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Hs2qPDFUfakpeVcvbqgRHx6hpgfaawfvq2cE1aAATuo=; b=AcgnQCB/BCVvNGhXkUqrcJgUA7 nRomHBgLSA0Wfr2j1uYTOzpEoCANZ+NLOvi1CKHbbLbj81D4p55vk+CNt3SVkWAuMTAx++UNDL9dD b7CPEbtjEpxbSguTj641eW1GWnIcYMFJpEv8C9rV/ScLQ8cniAHGyUxxtiQaWjwR8hi9+v75Jfkje CV65oncE5qHA6x+UbaOTivf0y/xoxzPLQaf3X5g2M9oCiXagDoN9urHnVfi9d/dCtX2lrGvBkbGpb 6fjrdIxhXC77+1wPgxdFebFYgu2S7OYzW9SpngtAR1zQYaTkB+VZXdwVVjz987KQiRwealhnW5OGM 4h3G9EyQ==; Received: from lilium.sigma-star.at ([109.75.188.150]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gD9SJ-0005Jm-T6 for linux-mtd@lists.infradead.org; Thu, 18 Oct 2018 14:39:21 +0000 Received: from localhost (localhost [127.0.0.1]) by lilium.sigma-star.at (Postfix) with ESMTP id 6277A18011B6B; Thu, 18 Oct 2018 16:39:07 +0200 (CEST) From: Richard Weinberger To: linux-mtd@lists.infradead.org Subject: [PATCH 39/42] mkfs.ubifs: Move RAND_poll to crypto.c Date: Thu, 18 Oct 2018 16:37:15 +0200 Message-Id: <20181018143718.26298-40-richard@nod.at> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181018143718.26298-1-richard@nod.at> References: <20181018143718.26298-1-richard@nod.at> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181018_103920_117248_F9898300 X-CRM114-Status: GOOD ( 11.43 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Weinberger , david.oberhollenzer@sigma-star.at Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Signed-off-by: Richard Weinberger --- ubifs-utils/mkfs.ubifs/crypto.c | 1 + ubifs-utils/mkfs.ubifs/mkfs.ubifs.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ubifs-utils/mkfs.ubifs/crypto.c b/ubifs-utils/mkfs.ubifs/crypto.c index 50a09b53ebfe..9c6073ec00f9 100644 --- a/ubifs-utils/mkfs.ubifs/crypto.c +++ b/ubifs-utils/mkfs.ubifs/crypto.c @@ -330,6 +330,7 @@ static struct cipher ciphers[] = { int crypto_init(void) { ERR_load_crypto_strings(); + RAND_poll(); return 0; } diff --git a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c index f8d8e52f1bae..e4204dae07cb 100644 --- a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c +++ b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c @@ -2841,8 +2841,6 @@ int main(int argc, char *argv[]) if (crypto_init()) return -1; - RAND_poll(); - err = get_options(argc, argv); if (err) return err;