Received: by 10.192.165.156 with SMTP id m28csp1666701imm; Wed, 18 Apr 2018 13:39:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+0mA92az0yTE43XRKIH0/MCmRpIvSx7T7SvQ1/VjuCVAqNc1v7kkvm3Ug3Q+tkKMRdUuY0 X-Received: by 10.101.96.65 with SMTP id b1mr2893530pgv.340.1524083980032; Wed, 18 Apr 2018 13:39:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524083980; cv=none; d=google.com; s=arc-20160816; b=MIEx4Opv6eYXf4Bm9u8dsxArqWxyZ1Fnki4XNNCmJ7ELVKfhRztOtMV/1Ph2TRy8F/ +huShZkw/79K5WbN/XkdBvV5Rq8PSwuQO7v7K9UyNt+djjcDnr8yKVNIeuO4xIx2uE9z D9L8L6o+68MDBBNkMvoMst0Seh5NmYaxT+eeI9JYf9VQWh1nDR+wv1RfXWSJ+t0zIcUF mE4qTTav7Vhjrs75usDdx4B+WHm6o71DHLm36N+FoSGUTMcqiWvNveYJ3ou8w7DbKr/I xRb6DLdWkzJQgkyhkdfdb95rfPH5X4xb8eKpp6OSi10z5qtFunlxO2+lV07yrs6uAeLy Zxnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=9cqJ+E4gqZL1yjHfwwbWNqqvDd5lcTYYTpJZbOGdLKQ=; b=s/hvLZw4gXUi0E+oSwLPM/A4G/538Qj/UdVVT7kVSjPLjOXsLQBD8QRmDIOZFN7V0V 8k9MIwkqGOjVDfNJ20eCEn0QQK6LF2QuBkGyf1YWSRiGVkBbRYp+bfByGXDyMmvV1lov kdri8HXwboR0owisea95Ex0JGBf+bhxQwiGb9DNH7MS4FxeAnmMzpme8PhlQhvByxdMk 7tusZOddw8WocSCx8wE0knLTXcnsoONEspIscfFLeyL2i8egFfS92Q12dgiUNtcZeaJZ 37d+0bIciJQY8IG/BcDzSx6KSjIWwvXgAFsmBEM5xRjUZ1EeXbtMAwOEUGviM3NXx/Df QsRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5-v6si1933341pll.269.2018.04.18.13.39.25; Wed, 18 Apr 2018 13:39:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752308AbeDRUiM (ORCPT + 99 others); Wed, 18 Apr 2018 16:38:12 -0400 Received: from mx2.suse.de ([195.135.220.15]:39251 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750981AbeDRUiK (ORCPT ); Wed, 18 Apr 2018 16:38:10 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 6945DAF39; Wed, 18 Apr 2018 20:38:09 +0000 (UTC) Date: Wed, 18 Apr 2018 22:38:09 +0200 From: "Luis R. Rodriguez" To: Ben Hutchings Cc: Greg Kroah-Hartman , "Luis R. Rodriguez" , Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH driver-core 2/2] test_firmware: fix setting old custom fw path back on exit, second try Message-ID: <20180418203808.GQ30543@wotan.suse.de> References: <20180404203712.zecit6po44qsde4c@xylophone.i.decadent.org.uk> <20180404203848.3txsangsvaxtxsu4@xylophone.i.decadent.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180404203848.3txsangsvaxtxsu4@xylophone.i.decadent.org.uk> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 04, 2018 at 10:38:49PM +0200, Ben Hutchings wrote: > Commit 65c79230576 tried to clear the custom firmware path on exit by > writing a single space to the firmware_class.path parameter. This > doesn't work because nothing strips this space from the value stored > and fw_get_filesystem_firmware() only ignores zero-length paths. > > Instead, write a null byte. > > Fixes: 0a8adf58475 ("test: add firmware_class loader test") > Fixes: 65c79230576 ("test_firmware: fix setting old custom fw path back on exit") > Signed-off-by: Ben Hutchings Acked-by: Luis R. Rodriguez Greg, let me know if you want to take these two in now, or if you want me to queue them up on my own and then send you what I get in the queue later. Luis