Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3943311pxj; Mon, 21 Jun 2021 09:53:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLWEUjGgqzuZikfDPJZql8QLJbK6vb78Buow+6QwYQAFl7nwGgbZhsufVlO6Ud04GoomG7 X-Received: by 2002:a05:6402:944:: with SMTP id h4mr22265144edz.76.1624294428225; Mon, 21 Jun 2021 09:53:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624294428; cv=none; d=google.com; s=arc-20160816; b=o1yvrDoo58Sm7f313EFybalnzw/xH86HciNHisiq6ofj/3Bgp0H+kdMqgSgm8zxB5a HqCZV4Kocf3kSHyLDQ71uVVLom9WILBKWlJZOWA0SEnIm6n1B6sCx63WufvRKJJ8daEX eOuYBv2NN+FMTyAEqYGIl3MEdHKbHgFFU3/R7ouqYWL03hg3pnLHMget8CYwLh70xc8W YehPZUP5n/62Um0gH2Ezdg7N0+y2tjgC69oZKjPb+yd8/GCTtiOBZmEs5xHAYGH1a28e hMAGGx8gvRsLThG4b88Ygc9CyEIMSi2MwCCNUKmFvBg1wiw/3DNsoEJL0ZKf13aiydqn p+eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2ifLX72L6c5gDWgs19XruInaTaPSPMy7fHO73VoshB0=; b=vIBTXRhaOEiRijucPvwJUtQDeA0W5TmwO1VEQPDBNR4j3U1Dky0jE99v07rnKGKh8f p+ixWMcivcGO89C+XX85204PpR92zY2nuowkTb4X24HVRtOjBTeGDXhYw7RR9NoSLM7H qUzgwscYcwNSPlWaXoeLBq5t49aRwfUg+0YO9fbhv7PfbuGZfTI+Fe9rCkwwykLEzxg0 LIooqOuxvT6e1hsqH/oOyLtyvwa8Fz7GQMbkSApeFmMGP2YKXQTUC+G52bi6rnPUxAj2 5AR3feKUaowJ/ffmqTd7FRh/Xdd0PTPjtKviMkPugXIPF60GsLyUVGCOy7Ew4y/hsU/L hZwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XONyP2nh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci12si11602438ejc.295.2021.06.21.09.53.25; Mon, 21 Jun 2021 09:53:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XONyP2nh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233255AbhFUQyP (ORCPT + 99 others); Mon, 21 Jun 2021 12:54:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:38048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233148AbhFUQtV (ORCPT ); Mon, 21 Jun 2021 12:49:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D2BA96102A; Mon, 21 Jun 2021 16:34:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624293265; bh=FdBuja15jXd1e5GdfkHlQY2YUsroQZp+BQFsPaFQ/7I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XONyP2nh4BTtaxZmd/T/rsbvh/5z/FtrsTdwo9BMVeWHNtDZCl8iC4RZ4AvMJqLVG bJg8gCg8wE4V4Si8p5/LItWSZnRgTQ00DsGERQaLFB5gpJXg5HH9TdM8aTChT9Y01L KOouDlrErUTlnokTkQS9JhYzt/0tTNrCGcrCX0J8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johannes Berg , Luca Coelho Subject: [PATCH 5.12 158/178] cfg80211: make certificate generation more robust Date: Mon, 21 Jun 2021 18:16:12 +0200 Message-Id: <20210621154928.132305459@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154921.212599475@linuxfoundation.org> References: <20210621154921.212599475@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Johannes Berg commit b5642479b0f7168fe16d156913533fe65ab4f8d5 upstream. If all net/wireless/certs/*.hex files are deleted, the build will hang at this point since the 'cat' command will have no arguments. Do "echo | cat - ..." so that even if the "..." part is empty, the whole thing won't hang. Cc: stable@vger.kernel.org Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20210618133832.c989056c3664.Ic3b77531d00b30b26dcd69c64e55ae2f60c3f31e@changeid Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- net/wireless/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/wireless/Makefile +++ b/net/wireless/Makefile @@ -28,7 +28,7 @@ $(obj)/shipped-certs.c: $(wildcard $(src @$(kecho) " GEN $@" @(echo '#include "reg.h"'; \ echo 'const u8 shipped_regdb_certs[] = {'; \ - cat $^ ; \ + echo | cat - $^ ; \ echo '};'; \ echo 'unsigned int shipped_regdb_certs_len = sizeof(shipped_regdb_certs);'; \ ) > $@