Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp948503ybz; Wed, 22 Apr 2020 10:45:46 -0700 (PDT) X-Google-Smtp-Source: APiQypLf214OmD6kJOfTPrEsIkqi3s0zzY11cPw+bsrArGp7Y+VrGwGeTAE6jPTDB5UAjqJe9834 X-Received: by 2002:a50:d7c7:: with SMTP id m7mr11694425edj.101.1587577545779; Wed, 22 Apr 2020 10:45:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587577545; cv=none; d=google.com; s=arc-20160816; b=lLFjUW4E3b9iWB7BBMd8JeLq8Iai5MPSat2iyBkuKzqSE3oVZiAlo37bobEvg2ovpQ ocStA5gKkdV/CkQCZJaSZLnYX9Kj+/VRjAxtzwBNQAk3ynFBaz85/AYrXAgsIuAgqBLz 5rOAYuT5VQm5w7zAFOgJheWssXOSNDkwQTXOdeMz38pDzPFsNJ7P1d2L1VOl30jBk9kC zqHUGN7ZUfR0uJUMXbxZj+sC4FQgckX4793Ck7SI3ebGt0XHL4xCgZpCH6ba7ELw/zDQ 2Z/7qCva97uDm9mBFkIDl/KQ51ExRmQD7rH4k2RT0t0sArK+bm9/MImQfrNQCuzh23lf 9HDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=AgXu2/t2Km2ywYvrYSwi4N3AjTw7Y5hna0WUFshncA0=; b=r0QeebW0wQiXVwuP2yc49HSH6MrYbQS5fsVKYSIsp55/tPL0rs+t9Z6J0i0Y6QcsDi 3ZSw2I+FJNHGtu/bjwoLIhm83+bUYAqF61SALQlHkxPocGS4vdLDOBkn8ri6B78JThnJ PTYzDJYWFy9lh052AsqLlv+HKp+GFIcgCMb+5EXz6w4iBJkEJpyIU45fljp/hcJEibUF bkX0EVS4CyW1z6EqfAfuwXI2J1I0is4HmLQEpijTCpvp3uZ7BSQzLuVbmBAUSGFacCP0 X6gT0oorrPMq76luLGYHKU3b07cu2vpQwhIOx1aAUmLxdEyYjUOG2ZkKU+AwF35Cez0v EIXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h24si3659861edv.469.2020.04.22.10.45.21; Wed, 22 Apr 2020 10:45:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726006AbgDVRpQ (ORCPT + 99 others); Wed, 22 Apr 2020 13:45:16 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:48188 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbgDVRpQ (ORCPT ); Wed, 22 Apr 2020 13:45:16 -0400 Received: from [192.168.1.91] (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id 97DF3CECFD; Wed, 22 Apr 2020 19:54:52 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH 1/8] Bluetooth: btbcm: Drop upper nibble version check from btbcm_initialize() From: Marcel Holtmann In-Reply-To: <20200417171532.448053-1-hdegoede@redhat.com> Date: Wed, 22 Apr 2020 19:44:44 +0200 Cc: Johan Hedberg , linux-bluetooth@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: References: <20200417171532.448053-1-hdegoede@redhat.com> To: Hans de Goede X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Hans, > btbcm_initialize() must either return an error; or fill the passed in > fw_name, otherwise we end up passing uninitialized stack memory to > request_firmware(). > > Since we have a fallback hw_name of "BCM" not having a known version > in the subver field does not matter, drop the check so that we always > fill the passed in fw_name. > > Signed-off-by: Hans de Goede > --- > drivers/bluetooth/btbcm.c | 4 ---- > 1 file changed, 4 deletions(-) all 8 patches have been applied to bluetooth-next tree. Regards Marcel