From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755378AbaHEPz5 (ORCPT ); Tue, 5 Aug 2014 11:55:57 -0400 Received: from mail-oa0-f50.google.com ([209.85.219.50]:48512 "EHLO mail-oa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755176AbaHEPzz (ORCPT ); Tue, 5 Aug 2014 11:55:55 -0400 MIME-Version: 1.0 In-Reply-To: References: <14048583172593@kroah.com> <8B2F6FFD0BD1E448853114367400A37306FD6FBBE9@BLRX7MCDC203.AMER.DELL.COM> <8B2F6FFD0BD1E448853114367400A37306FD6FBBF8@BLRX7MCDC203.AMER.DELL.COM> <8B2F6FFD0BD1E448853114367400A37306FD6FBC06@BLRX7MCDC203.AMER.DELL.COM> <8B2F6FFD0BD1E448853114367400A37306FD6FBDAB@BLRX7MCDC203.AMER.DELL.COM> <8B2F6FFD0BD1E448853114367400A37306FE07C773@BLRX7MCDC203.AMER.DELL.COM> <8B2F6FFD0BD1E448853114367400A37306FE07CC64@BLRX7MCDC203.AMER.DELL.COM> <8B2F6FFD0BD1E448853114367400A37306FE311D74@BLRX7MCDC203.AMER.DELL.COM> From: Jean-Michel Hautbois Date: Tue, 5 Aug 2014 17:55:40 +0200 Message-ID: Subject: Re: patch "firmware loader: allow disabling of udev as firmware loader" added to driver-core tree To: Takashi Iwai Cc: B_B_Singh@dell.com, Greg KH , Abhay_Salunke@dell.com, Arnd Bergmann , kay@vrfy.org, ming.lei@canonical.com, Stefan Roese , teg@jklm.no, Stuart_Hayes@dell.com, Srinivas_G_Gowda@dell.com, linux-kernel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2014-08-05 17:53 GMT+02:00 Takashi Iwai : > At Tue, 5 Aug 2014 17:43:17 +0200, > Jean-Michel Hautbois wrote: >> >> 2014-08-01 22:01 GMT+02:00 : >> > Hi Takashi, >> > >> > Sorry for the late response, I tried with latest stable kernel 3.15.8. surprisingly the BIOS update works even without applying the patch in both the cases. >> >> Hi,I'm sorry for my late answer too, but I didn't try this patch recently... >> >> I have a Lattice FPGA on my board, and it seems that your patch breaks >> the firmware loading. >> I have the following config : >> CONFIG_FW_LOADER=y >> CONFIG_FW_LOADER_USER_HELPER=n >> FW_LOADER_USER_HELPER_FALLBACK=n >> LATTICE_ECP3_CONFIG=y > > It worked before applying my patch properly...? > > The kernel Oops itself is a bug in lattice-ecp3-config driver. > It blindly assumes that the returned firmware is non-NULL. > firmware_load() must have a NULL check of fw at the beginning. > > > thanks, > > Takashi Yes, it worked, if the firmware was in the /lib/firmware directory. You are right, it lacks a NULL check, I will fix that. Thanks, JM