Arend van Spriel <arend.vanspriel@xxxxxxxxxxxx> writes: > Extend the parameters in the firmware callback so it can be called > upon success and failure. This allows the caller to properly clear > all resources in the failure path. Right now the error code is > always zero, ie. success. > > Cc: stable@xxxxxxxxxxxxxxx # 4.9.x- > Reviewed-by: Hante Meuleman <hante.meuleman@xxxxxxxxxxxx> > Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@xxxxxxxxxxxx> > Reviewed-by: Franky Lin <franky.lin@xxxxxxxxxxxx> > Signed-off-by: Arend van Spriel <arend.vanspriel@xxxxxxxxxxxx> [...] > -static void brcmf_usb_probe_phase2(struct device *dev, > +static void brcmf_usb_probe_phase2(struct device *dev, int ret, > const struct firmware *fw, > void *nvram, u32 nvlen) > { > struct brcmf_bus *bus = dev_get_drvdata(dev); > struct brcmf_usbdev_info *devinfo; > - int ret; > + > + if (ret) > + goto error; This introduces a new warning: drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c:1198:2: warning: ‘devinfo’ may be used uninitialized in this function [-Wmaybe-uninitialized] >From a quick look I think it's valid, but due to my mistake I only noticed it after I had applied the patch. So can you send a small followup patch to fix this, please? -- Kalle Valo