Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp461159ybl; Tue, 28 Jan 2020 06:20:03 -0800 (PST) X-Google-Smtp-Source: APXvYqyGLKMDa3HySPr6o68RKpqkSi81+gC3hC9/bCRyNVClI9ffWNRsliD3BTpFKUBeQeI6d5Wt X-Received: by 2002:a9d:170a:: with SMTP id i10mr15900447ota.284.1580221203569; Tue, 28 Jan 2020 06:20:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580221203; cv=none; d=google.com; s=arc-20160816; b=Ld9Phbz/LGveQYPrhKzMA72hpX0egvffoZ4Ol3sJpqsmfbSbQ1vi6+y+FKbYU/kSkW O4RiOosq5YFzIMtaV5WCqjJ9v75aSHdo13ppyveqt/iRXAOfhZLgYfGQpyYNDEoeHktD Y/fgMV0NEvDGnxYbW3aT1Ksnam897Y3ciJwzzuSbagOt/R+SRyYvvLJ9jfFSWduu3OwU XwyeJb6yXXkPd8HhGyeVMg6Sawl3TWust7yEC5M6rADU/K2qzQgQqi5qWkJ2JZz2QMlv /IvSsz5BK4p23XYpCoyNlS4ySupmXPUPzXQ4keQzavDVNiyDwvSO8iZUtVT63/pe8mpx BTJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2YOBEic1n1Py9GyqzmN4nJc5vCpU5CeD5wiMOPxA2to=; b=hGeGqOHvv/SyG3TKSu5JMZO2lv4nYB7qmPUcq8JRQPx+81hrpmeRJ/G2IvPwpnEZ9o f1WR1YE99K+82mAtMnAiqobZDsig21rPDPLrylOeVWGujppR2FoWnWNSRv4BjV7RhQjV 8iESUZAHyXvFggWIoutY87sdBwqRvX4YSHuWRV9w5JD1ZK06382ZgOOfchdIJzg0TzJw DggQrBQ//TDrpCEgLw+vADIlKlVXEshOA0wRUi2uJhIZfYjDpvFwCMjVb/GRnSaqfPBa ZiHXmbVp7CoS0g9J9jOsLzjjxkPkJuRWOkrIKmDkoTXuEWfCAFA3vYDKk7Pm1oQDef9Z 3j5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LNvtESsk; 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 c21si343698otf.74.2020.01.28.06.19.51; Tue, 28 Jan 2020 06:20:03 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=LNvtESsk; 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 S1730759AbgA1OSy (ORCPT + 99 others); Tue, 28 Jan 2020 09:18:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:43032 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730740AbgA1OSw (ORCPT ); Tue, 28 Jan 2020 09:18:52 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B7A292071E; Tue, 28 Jan 2020 14:18:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221132; bh=ADnRa4oNoXPIoll2MpgGv4g0MHmPBHVYvmPDaUp5uPw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LNvtESskIb/LIbIMni20o4KXClmYTI7bgao/jKeAw+V+AizQ2oO3VQodjmZ3YIz+2 r+g75aGKmHCV3gmpRgJxT1MVlYEPejlWa5edO30sgEqgH3uD77fYSLaB0z1ED21KSR gQm33J/1ejJMRa/P9Jlsn8Gkl49XEs48624UjYgU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.9 100/271] media: wl128x: Fix an error code in fm_download_firmware() Date: Tue, 28 Jan 2020 15:04:09 +0100 Message-Id: <20200128135900.040243747@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Carpenter [ Upstream commit ef4bb63dc1f7213c08e13f6943c69cd27f69e4a3 ] We forgot to set "ret" on this error path. Fixes: e8454ff7b9a4 ("[media] drivers:media:radio: wl128x: FM Driver Common sources") Signed-off-by: Dan Carpenter Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/radio/wl128x/fmdrv_common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/radio/wl128x/fmdrv_common.c b/drivers/media/radio/wl128x/fmdrv_common.c index c1457cf466981..db987dda356e0 100644 --- a/drivers/media/radio/wl128x/fmdrv_common.c +++ b/drivers/media/radio/wl128x/fmdrv_common.c @@ -1278,8 +1278,9 @@ static int fm_download_firmware(struct fmdev *fmdev, const u8 *fw_name) switch (action->type) { case ACTION_SEND_COMMAND: /* Send */ - if (fmc_send_cmd(fmdev, 0, 0, action->data, - action->size, NULL, NULL)) + ret = fmc_send_cmd(fmdev, 0, 0, action->data, + action->size, NULL, NULL); + if (ret) goto rel_fw; cmd_cnt++; -- 2.20.1