Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3921534pxj; Mon, 21 Jun 2021 09:25:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPquYTJbTZf3Da3oGJGVW2ZrEPT7bIQ78IqmBm5gd3gK08njLOxw4HAQentY0DSX2prc/f X-Received: by 2002:aa7:d590:: with SMTP id r16mr23107270edq.355.1624292710933; Mon, 21 Jun 2021 09:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624292710; cv=none; d=google.com; s=arc-20160816; b=mjjUl8SNOgp7jr0ArlDngnpda6edLPLdjmsoBX5lu8V71Nxb4SEroXpeHH6BipeRmg mopEMlJfcWP6YgGT7zeYfX0so/BiFaTkq9mdSUiLX2zG5aSgROcEztUeURWO5MJ3Nz7r mUpHs+MaUFilxvLCXBOK0A07DDcd2Mo3n52FgpFKKFzyObz7HAdB/zfZxg/nZTOLD53c 8doDh2ipiyKffRQfM1yrYzEaxGQnYdktlUneIPdN/zmPVgwNtRS92bnQ9yfNbo/Otjcy U7pJemcR5B7ZHLlEjDCsLnXJrmm1pOGtxLEewEI1sbigMwNTyY1PvS7zigpWm32ciWia sEFg== 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=F/CbeVfgUM2DQXk7uybScu+Yz8qMs5L154iFAFfqC1WAuTD00i+EvZJskpdOHCIcSP VS5DoaqNTZzvG4vbvaU/Op0pSbIe2gbpPnNZPc0MzWWpmMWk8XmvypkSNLjGcfvoUej5 ombscVwuCe/wwjJHwN1NDtZQZAsyQounz6TJZCx4vIhUqJJ9U4MHNDwTroYy9Lty/ciy QagvEKvarr4FFNSiV7mjYwRBHCLbMTu0LAoycBCQ2Gb4qFiax0977cjHQYktO2dDaDTx xoPDML47T2k6htBfmD6mf+mQ9fwVZ4EyXM530lzFRsdLJNMhL8D3OdE6owPCJpYbAySk f/bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Q7TZFsRO; 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 jg29si10848784ejc.268.2021.06.21.09.24.48; Mon, 21 Jun 2021 09:25:10 -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=Q7TZFsRO; 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 S232023AbhFUQX1 (ORCPT + 99 others); Mon, 21 Jun 2021 12:23:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:42100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230028AbhFUQWE (ORCPT ); Mon, 21 Jun 2021 12:22:04 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9ABCD6124B; Mon, 21 Jun 2021 16:19:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624292385; bh=FdBuja15jXd1e5GdfkHlQY2YUsroQZp+BQFsPaFQ/7I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q7TZFsROxxRwbkvGoxWTioSpzTaS2AVSZl3835oa4JM3FWolobG3O/Us88HwHJU8j K40og7k2mRW3Z5ZzeXaY3H+BykpHMZHZ7UZqziXePCOxTdMbNd0orpiBDX8MI1sv9w avO9Zv60uQJmy54R/92CRIlf5ZBfM3grztfHMpPU= 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.4 70/90] cfg80211: make certificate generation more robust Date: Mon, 21 Jun 2021 18:15:45 +0200 Message-Id: <20210621154906.524503400@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154904.159672728@linuxfoundation.org> References: <20210621154904.159672728@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);'; \ ) > $@